Skip to content

Commit

Permalink
(cherry-pick): Fix [121786c0]: image svg upstream out of bound read n…
Browse files Browse the repository at this point in the history
…anosvg#262
  • Loading branch information
jan.nijtmans committed Dec 22, 2024
1 parent ca408a0 commit d214a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic/nanosvg.h
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ static unsigned int nsvg__parseColorRGB(const char* str)
while (*str && nsvg__isdigit(*str)) str++; /* skip fractional part */
}
if (*str == '%') str++; else break;
while (nsvg__isspace(*str)) str++;
while (*str && nsvg__isspace(*str)) str++;
if (*str == delimiter[i]) str++;
else break;
}
Expand Down

0 comments on commit d214a88

Please sign in to comment.