nothings / stb

stb single-file public domain libraries for C/C++
https://twitter.com/nothings
Other
25.77k stars 7.66k forks source link

stb_image: fix: loading of an invalid JPEG #1608 #1624

Open cocoa-xu opened 3 months ago

cocoa-xu commented 3 months ago

Hi this PR tries to fix the issue #1608, as stbi__process_marker returns 0 when the image is corrupted (with bad markers), so I believe that we should also return 0 from here.