Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/memononen/nanosvg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-09-27Merge pull request #229 from thrifty-txt/masterHEADmasterMikko Mononen
Remove non-prototype function declarations
2022-09-27Remove non-prototype function declarationAli Abdel-Qader
2022-08-10Merge pull request #222 from 0vercl0k/fbl_fixoob2Mikko Mononen
Fix OOB in nsvg__parseUrl.
2022-08-10Fix OOB in nsvg__parseUrl.0vercl0k
2022-07-09Merge pull request #220 from fltk/fix-rgb-color-localeMikko Mononen
Make nsvg__parseColorRGB() independent of the current locale (#139)
2022-07-09Merge pull request #219 from fltk/fix-header-guards-eolMikko Mononen
Fix newline at end of file, add comments
2022-07-08Make nsvg__parseColorRGB() independent of the current locale (#139)Albrecht Schlosser
This commit fixes the locale dependency (re-)introduced by commit c3ad36ef81992ff714cdbb4543cd67cb66daad8c by using sscanf() to parse floating point values. This modification uses nsvg__atof() which is independent of the current locale.
2022-07-08Fix newline at end of file, add commentsAlbrecht Schlosser
Fix "No newline at end of file" warning. The newline was removed by commit 47f28a2a78de610, probably unintentionally. Add missing comments to #endif statements for clarity and consistency.
2022-05-26Merge pull request #215 from tamasmeszaros/tm_fix_includesMikko Mononen
Fix build when both nanosvg.h and nanosvgrast.h is included
2022-05-26Fix build when both nanosvg.h and nanosvgrast.h is includedtamasmeszaros
with IMPLEMENTATION macros defined.
2022-05-09Merge pull request #209 from tamasmeszaros/cmake_buildMikko Mononen
Add CMake build script to the project
2022-05-07Merge pull request #210 from chrstphrchvz/patch-2Mikko Mononen
Avoid calling `qsort()` when `r->nedges == 0`
2022-05-07Avoid calling qsort() when r->nedges == 0Christopher Chavez
In some unusual cases, r->nedges == 0 and r->edges == NULL. At least glibc declares the array pointer for qsort() to be non-NULL, causing UBSan (-fsanitize=nonnull-attribute) to complain.
2022-05-04Remove redundant linetamasmeszaros
2022-05-04Fix linking on MSVCtamasmeszaros
2022-05-04Add CMake build script to the projecttamasmeszaros
Also add short description into readme
2022-04-29Merge pull request #207 from chrstphrchvz/patch-1Mikko Mononen
Avoid signed integer overflow in nsvg__RGBA()
2022-04-29Avoid signed integer overflow in nsvg__RGBA()Christopher Chavez
`a` is implicitly cast to (signed) `int` before shifting, and when `int` is 32-bit, it is undefined behavior to left-shift `a` by 24 when its most significant bit is 1. Error from UBSan (`-fsanitize=shift-base`): nanosvgrast.h:975:41: runtime error: left shift of 255 by 24 places cannot be represented in type 'int' Casting `a` to `unsigned int` before shifting avoids undefined behavior.
2022-04-08Merge pull request #205 from AuthorityFX/masterMikko Mononen
Fixed rbg percentage parsing in nsvg__parseColorRGB
2022-04-07roundf instead of roundRyan P. Wilson
move declaration of rgb floats to top of block
2022-04-07Fixed rbg percentage parsing in nsvg__parseColorRGBRyan P. Wilson
2021-09-03Merge pull request #198 from ctrlcctrlv/CVE_2019_1000032Mikko Mononen
Fix decimal values in color fields (nsvg__parseColorRGB, nsvg__parseColorHex)
2021-09-03Fix decimal values in color fields (nsvg__parseColorRGB)Greg Ercolano
Closes #136, fixes [CVE-2019-1000032](https://0day.work/cve-2019-1000032-memory-corruption-in-nanosvg/).
2021-03-30Merge pull request #196 from oehhar/masterMikko Mononen
Fix for ticket #179 "division by 0" proposed by SergeySlice
2021-03-29Fix for ticket #179 "division by 0" proposed by SergeySliceHarald Oehlmann
2020-11-20Merge pull request #189 from fvogelnew1/Fix-for-#188Mikko Mononen
Update nanosvg.h
2020-11-20Update nanosvg.hfvogelnew1
Fix https://github.com/memononen/nanosvg/issues/188
2020-09-28Restore example2 test fileMikko Mononen
2020-09-28Fix for #185Mikko Mononen
- prevent infinite loop when gradient ID is left to empty string - prevent infinite loop when gradient references to self - lookup up to 32 references back
2020-09-28Fix for #178Mikko Mononen
- make sure nsvg__addPath() hands only valid number of pointts (1+N*3) - require moveTo path command before handling other commands - require (sign+)digit for a valid path command coordinate - allow to add bezier segment only after there’s at leat one point (now also consistent with nsvg__lineTo)
2020-09-21Merge pull request #182 from oehhar/masterMikko Mononen
Ticket #178: endless loop (DOS) when parsing crafted input via nsvgPa…
2020-09-21Ticket #178: endless loop (DOS) when parsing crafted input via ↵Harald Oehlmann
nsvgParseFromFile() Fix be fvogel
2019-04-22Update README.mdMikko Mononen
2019-04-05Merge pull request #152 from darealshinji/patch-2Mikko Mononen
don't cast long long -> double -> long long
2019-03-08Merge pull request #154 from jzrake/masterMikko Mononen
Fix parsing of numbers with units ex and em
2019-03-08Fix parsing of numbers with units ex and emJonathan Zrake
Unrelated: kill precision warning in nsvg__atof, make expPart long.
2019-03-05don't cast long long -> double -> long longdarealshinji
2018-12-14Merge pull request #145 from wcout/issue_139Mikko Mononen
Fix issue #139: Nano SVG is still locale dependent
2018-12-14Fix issue #139: Nano SVG is still locale dependentwcout
2018-08-08Merge pull request #128 from poke1024/cpluscplusMikko Mononen
Add option for cpp symbol export
2018-08-08Add option for cpp symbol exportBernhard Liebl
2018-07-22Merge branch 'pr/63'Mikko Mononen
2018-04-14Merge pull request #116 from porglezomp-misc/masterMikko Mononen
Parse <svg> percentage width for automatic sizing
2018-04-14Parse <svg> percentage width for automatic sizingCaleb Jones
Instead of calculating percentage coordinates relative to 1px, we calculate them relative to 0px width, that way an explicit <svg width="100%"> will be converted to <svg width="0px"> and trigger the bounding-box sizing calculation.
2018-03-17Merge pull request #113 from martinlindhe/masterMikko Mononen
type fix: change nsvg__parseLineJoin() default value to NSVG_JOIN_MITER
2018-03-16type fix: change nsvg__parseLineJoin() default value to NSVG_JOIN_MITERMartin Lindhe
2018-02-12Merge pull request #112 from luzpaz/misc-typoMikko Mononen
Misc. README typo
2018-02-12Misc. README typoluz.paz
2017-07-09Merge pull request #99 from nightlark/patch-1Mikko Mononen
Added missing 'S' in NanoSVG
2017-07-09Added missing 'S' in NanoSVGRyan Mast