libsdl-org / SDL_image

Image decoding for many popular formats for Simple Directmedia Layer.
zlib License
513 stars 174 forks source link

IMG_png.c: remove volatile keywords handle longjmp issues better #418

Closed sezero closed 5 months ago

sezero commented 5 months ago

Reference issue: https://github.com/libsdl-org/SDL_image/issues/416

sezero commented 5 months ago

@smcv: Can you see any gotchas here? If this is foolproof, I'd like to backport to SDL2 too. (And maybe some testcases that should hit longjmp and XFAIL?)

sezero commented 5 months ago

Got two approvals, therefore merging.

Please open a new ticket for any further fixes and/or improvements.

sezero commented 5 months ago

Now backported to SDL2 branch, too.