stb_image: JPEG: Accept fill bytes in stbi__grow_buffer_unsafe

pull/421/head
Jeremy Sawicki 2017-03-02 23:10:03 -08:00
parent 59a5a155b4
commit 344c3f73d5
1 changed files with 1 additions and 0 deletions

View File

@ -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;