diff options
author | bptato <nincsnevem662@gmail.com> | 2024-12-19 19:21:01 +0100 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-01-25 14:23:04 +0100 |
commit | d4f7b19cf12710452ff6b70071de0990ad4ac8f7 (patch) | |
tree | 8ba75f0793372b35b7e64340f8f5dc4b75ac5b8f /src/css.cc | |
parent | 70afa86d8c57d194e370c848540520e7bb034fca (diff) |
Fix OOB read in nsvg__parseColorRGB()
nsvg__isspace uses strchr on a NUL terminated string, so it returns
true for the NUL terminator. Other uses of nsvg__isspace account for
this by checking for NUL first; I've followed the same pattern here.
Fixes: https://github.com/memononen/nanosvg/issues/241
See: https://github.com/memononen/nanosvg/pull/262
Diffstat (limited to 'src/css.cc')
0 files changed, 0 insertions, 0 deletions