Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-09-27 | Merge pull request #229 from thrifty-txt/masterHEADmaster | Mikko Mononen | |
Remove non-prototype function declarations | |||
2022-09-27 | Remove non-prototype function declaration | Ali Abdel-Qader | |
2022-08-10 | Merge pull request #222 from 0vercl0k/fbl_fixoob2 | Mikko Mononen | |
Fix OOB in nsvg__parseUrl. | |||
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-09 | Merge pull request #219 from fltk/fix-header-guards-eol | Mikko Mononen | |
Fix newline at end of file, add comments | |||
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 | Merge pull request #215 from tamasmeszaros/tm_fix_includes | Mikko Mononen | |
Fix build when both nanosvg.h and nanosvgrast.h is included | |||
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 | Merge pull request #210 from chrstphrchvz/patch-2 | Mikko Mononen | |
Avoid calling `qsort()` when `r->nedges == 0` | |||
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 | Remove redundant line | tamasmeszaros | |
2022-05-04 | Fix linking on MSVC | tamasmeszaros | |
2022-05-04 | Add CMake build script to the project | tamasmeszaros | |
Also add short description into readme | |||
2022-04-29 | Merge pull request #207 from chrstphrchvz/patch-1 | Mikko Mononen | |
Avoid signed integer overflow in nsvg__RGBA() | |||
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-08 | Merge pull request #205 from AuthorityFX/master | Mikko Mononen | |
Fixed rbg percentage parsing in nsvg__parseColorRGB | |||
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 | Merge pull request #198 from ctrlcctrlv/CVE_2019_1000032 | Mikko Mononen | |
Fix decimal values in color fields (nsvg__parseColorRGB, nsvg__parseColorHex) | |||
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-30 | Merge pull request #196 from oehhar/master | Mikko Mononen | |
Fix for ticket #179 "division by 0" proposed by SergeySlice | |||
2021-03-29 | Fix for ticket #179 "division by 0" proposed by SergeySlice | Harald Oehlmann | |
2020-11-20 | Merge pull request #189 from fvogelnew1/Fix-for-#188 | Mikko Mononen | |
Update nanosvg.h | |||
2020-11-20 | Update nanosvg.h | fvogelnew1 | |
Fix https://github.com/memononen/nanosvg/issues/188 | |||
2020-09-28 | Restore example2 test file | Mikko Mononen | |
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 | Merge pull request #182 from oehhar/master | Mikko Mononen | |
Ticket #178: endless loop (DOS) when parsing crafted input via nsvgPa… | |||
2020-09-21 | Ticket #178: endless loop (DOS) when parsing crafted input via ↵ | Harald Oehlmann | |
nsvgParseFromFile() Fix be fvogel | |||
2019-04-22 | Update README.md | Mikko Mononen | |
2019-04-05 | Merge pull request #152 from darealshinji/patch-2 | Mikko Mononen | |
don't cast long long -> double -> long long | |||
2019-03-08 | Merge pull request #154 from jzrake/master | Mikko Mononen | |
Fix parsing of numbers with units ex and em | |||
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 | Merge pull request #145 from wcout/issue_139 | Mikko Mononen | |
Fix issue #139: Nano SVG is still locale dependent | |||
2018-12-14 | Fix issue #139: Nano SVG is still locale dependent | wcout | |
2018-08-08 | Merge pull request #128 from poke1024/cpluscplus | Mikko Mononen | |
Add option for cpp symbol export | |||
2018-08-08 | Add option for cpp symbol export | Bernhard Liebl | |
2018-07-22 | Merge branch 'pr/63' | Mikko Mononen | |
2018-04-14 | Merge pull request #116 from porglezomp-misc/master | Mikko Mononen | |
Parse <svg> percentage width for automatic sizing | |||
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-17 | Merge pull request #113 from martinlindhe/master | Mikko Mononen | |
type fix: change nsvg__parseLineJoin() default value to NSVG_JOIN_MITER | |||
2018-03-16 | type fix: change nsvg__parseLineJoin() default value to NSVG_JOIN_MITER | Martin Lindhe | |
2018-02-12 | Merge pull request #112 from luzpaz/misc-typo | Mikko Mononen | |
Misc. README typo | |||
2018-02-12 | Misc. README typo | luz.paz | |
2017-07-09 | Merge pull request #99 from nightlark/patch-1 | Mikko Mononen | |
Added missing 'S' in NanoSVG | |||
2017-07-09 | Added missing 'S' in NanoSVG | Ryan Mast | |