Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-09-27 | Remove non-prototype function declaration | Ali Abdel-Qader | |
2022-08-10 | Fix OOB in nsvg__parseUrl. | 0vercl0k | |
2022-07-09 | Merge pull request #220 from fltk/fix-rgb-color-locale | Mikko Mononen | |
Make nsvg__parseColorRGB() independent of the current locale (#139) | |||
2022-07-08 | Make 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-08 | Fix newline at end of file, add comments | Albrecht 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-26 | Fix build when both nanosvg.h and nanosvgrast.h is included | tamasmeszaros | |
with IMPLEMENTATION macros defined. | |||
2022-05-09 | Merge pull request #209 from tamasmeszaros/cmake_build | Mikko Mononen | |
Add CMake build script to the project | |||
2022-05-07 | Avoid calling qsort() when r->nedges == 0 | Christopher 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-04 | Add CMake build script to the project | tamasmeszaros | |
Also add short description into readme | |||
2022-04-29 | Avoid 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-07 | roundf instead of round | Ryan P. Wilson | |
move declaration of rgb floats to top of block | |||
2022-04-07 | Fixed rbg percentage parsing in nsvg__parseColorRGB | Ryan P. Wilson | |
2021-09-03 | Fix 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-29 | Fix for ticket #179 "division by 0" proposed by SergeySlice | Harald Oehlmann | |
2020-11-20 | Update nanosvg.h | fvogelnew1 | |
Fix https://github.com/memononen/nanosvg/issues/188 | |||
2020-09-28 | Fix for #185 | Mikko 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-28 | Fix for #178 | Mikko 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-21 | Ticket #178: endless loop (DOS) when parsing crafted input via ↵ | Harald Oehlmann | |
nsvgParseFromFile() Fix be fvogel | |||
2019-04-05 | Merge pull request #152 from darealshinji/patch-2 | Mikko Mononen | |
don't cast long long -> double -> long long | |||
2019-03-08 | Fix parsing of numbers with units ex and em | Jonathan Zrake | |
Unrelated: kill precision warning in nsvg__atof, make expPart long. | |||
2019-03-05 | don't cast long long -> double -> long long | darealshinji | |
2018-12-14 | Fix issue #139: Nano SVG is still locale dependent | wcout | |
2018-08-08 | Add option for cpp symbol export | Bernhard Liebl | |
2018-07-22 | Merge branch 'pr/63' | Mikko Mononen | |
2018-04-14 | Parse <svg> percentage width for automatic sizing | Caleb 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-16 | type fix: change nsvg__parseLineJoin() default value to NSVG_JOIN_MITER | Martin Lindhe | |
2017-07-01 | Fixed how sign is applied for fractions | Mikko Mononen | |
2017-06-30 | Fix for issue #90 - use custom strong to float conversion | Mikko Mononen | |
Use custom strong to float conversion instead of the one from std library to fix parsing floats with locales which use different number format than specified by SVG. | |||
2017-06-13 | Fix for gradient transformation when scaling is used | X-Ryl669 | |
2017-06-01 | Fix for wrong computation in ArcTo function | X-Ryl669 | |
2017-04-25 | Revert wrong comment | djack1010 | |
2017-04-24 | Applied requested changes | djack1010 | |
2017-04-23 | Ignore malformed attributes in XML | djack1010 | |
2017-04-23 | Check buffer length in parseCoordinateRaw | djack1010 | |
2017-04-22 | Merge branch 'master' into master | Mikko Mononen | |
2017-04-21 | Changed reverse shape list to tail cached variant | daniel-starke | |
2017-04-21 | coding style | lieff | |
2017-04-21 | Fixed reverse shape list implementation | daniel-starke | |
2017-04-21 | fix shapes order | lieff | |
2017-04-21 | Fixed GCC warnings | daniel-starke | |
2017-04-20 | add new shapes to the head due to performance, reverse list of shapes later | tpechot | |
2017-03-11 | addded support for stroke-miterlimit | Mark Tyberg | |
2016-03-23 | Fixed typo and added variable types | Erick Fuentes | |
2016-02-18 | Added nsvgDuplicatePath . Also, fixed some minor typos into the tutorial. ↵ | Alessandro Roncone | |
Ref #62 | |||
2016-02-02 | Fix minor typo in credit comment (Anti-Graim -> Anti-Grain). | Dean McNamee | |
2016-01-23 | Fix relative T/t path commands. Typo from S/s command. | Dean McNamee | |
2015-12-21 | Resolve release-mode gcc compilation warning: fread return value ignored | Nigel Stewart | |
2015-11-08 | Implemented dashed stroke rendering | Mikko Mononen | |
2015-11-07 | Better support for coordinates, fixes local space percentage gradients | Mikko Mononen | |
- fixed zero check in form inverse (was producing NaNs - improved coordinate parsing - handle gradient percentage coords properly | |||
2015-11-05 | Fix the visibility attribute parsing, keep the information in the | Olivier Galibert | |
shape and take it into account in the rendering. |