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
path: root/src
AgeCommit message (Collapse)Author
2022-09-27Remove non-prototype function declarationAli Abdel-Qader
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-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-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-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-04Add CMake build script to the projecttamasmeszaros
Also add short description into readme
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-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-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-29Fix for ticket #179 "division by 0" proposed by SergeySliceHarald Oehlmann
2020-11-20Update nanosvg.hfvogelnew1
Fix https://github.com/memononen/nanosvg/issues/188
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-21Ticket #178: endless loop (DOS) when parsing crafted input via ↵Harald Oehlmann
nsvgParseFromFile() Fix be fvogel
2019-04-05Merge pull request #152 from darealshinji/patch-2Mikko Mononen
don't cast long long -> double -> long long
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-14Fix issue #139: Nano SVG is still locale dependentwcout
2018-08-08Add option for cpp symbol exportBernhard Liebl
2018-07-22Merge branch 'pr/63'Mikko Mononen
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-16type fix: change nsvg__parseLineJoin() default value to NSVG_JOIN_MITERMartin Lindhe
2017-07-01Fixed how sign is applied for fractionsMikko Mononen
2017-06-30Fix for issue #90 - use custom strong to float conversionMikko 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-13Fix for gradient transformation when scaling is usedX-Ryl669
2017-06-01Fix for wrong computation in ArcTo functionX-Ryl669
2017-04-25Revert wrong commentdjack1010
2017-04-24Applied requested changesdjack1010
2017-04-23Ignore malformed attributes in XMLdjack1010
2017-04-23Check buffer length in parseCoordinateRawdjack1010
2017-04-22Merge branch 'master' into masterMikko Mononen
2017-04-21Changed reverse shape list to tail cached variantdaniel-starke
2017-04-21coding stylelieff
2017-04-21Fixed reverse shape list implementationdaniel-starke
2017-04-21fix shapes orderlieff
2017-04-21Fixed GCC warningsdaniel-starke
2017-04-20add new shapes to the head due to performance, reverse list of shapes latertpechot
2017-03-11addded support for stroke-miterlimitMark Tyberg
2016-03-23Fixed typo and added variable typesErick Fuentes
2016-02-18Added nsvgDuplicatePath . Also, fixed some minor typos into the tutorial. ↵Alessandro Roncone
Ref #62
2016-02-02Fix minor typo in credit comment (Anti-Graim -> Anti-Grain).Dean McNamee
2016-01-23Fix relative T/t path commands. Typo from S/s command.Dean McNamee
2015-12-21Resolve release-mode gcc compilation warning: fread return value ignoredNigel Stewart
2015-11-08Implemented dashed stroke renderingMikko Mononen
2015-11-07Better support for coordinates, fixes local space percentage gradientsMikko Mononen
- fixed zero check in form inverse (was producing NaNs - improved coordinate parsing - handle gradient percentage coords properly
2015-11-05Fix the visibility attribute parsing, keep the information in theOlivier Galibert
shape and take it into account in the rendering.