Skip to content

Commit

Permalink
stb_image: fix: loading of an invalid JPEG nothings#1608
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Mar 17, 2024
1 parent ae721c5 commit c669b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stb_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -3436,7 +3436,7 @@ static int stbi__decode_jpeg_image(stbi__jpeg *j)
if (NL != j->s->img_y) return stbi__err("bad DNL height", "Corrupt JPEG");
m = stbi__get_marker(j);
} else {
if (!stbi__process_marker(j, m)) return 1;
if (!stbi__process_marker(j, m)) return stbi__err("bad marker","Corrupt JPEG");
m = stbi__get_marker(j);
}
}
Expand Down

0 comments on commit c669b41

Please sign in to comment.