stb_image: JPEG: Accept fill bytes in stbi__grow_buffer_unsafe
This commit is contained in:
parent
59a5a155b4
commit
344c3f73d5
@ -1851,6 +1851,7 @@ static void stbi__grow_buffer_unsafe(stbi__jpeg *j)
|
||||
int b = j->nomore ? 0 : stbi__get8(j->s);
|
||||
if (b == 0xff) {
|
||||
int c = stbi__get8(j->s);
|
||||
while (c == 0xff) c = stbi__get8(j->s);
|
||||
if (c != 0) {
|
||||
j->marker = (unsigned char) c;
|
||||
j->nomore = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user