Skip to content

Commit f84512a

Browse files
committed
ticket [121786c0] image svg upstream out of bound read nanosvg#262
1 parent 5894605 commit f84512a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generic/nanosvg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ static unsigned int nsvg__parseColorRGB(const char* str)
13411341
while (*str && nsvg__isdigit(*str)) str++; /* skip fractional part */
13421342
}
13431343
if (*str == '%') str++; else break;
1344-
while (nsvg__isspace(*str)) str++;
1344+
while (*str && nsvg__isspace(*str)) str++;
13451345
if (*str == delimiter[i]) str++;
13461346
else break;
13471347
}

0 commit comments

Comments
 (0)