Closed ioan-chera closed 1 year ago
Turns out it's a case of compiler over-optimization around setjmp
. Adding volatile
pointers and using them inside setjmp
fixes the issue, but it's not my code. It happens in the constructors of Fl_JPEG_Image
.
Solved by applying a patch on FLTK before building it. If you're on Mac, make sure you delete the FLTK archive and dir from under build/src before you rebuild!
Using FLTK 1.3.8 and testing on Mac (unknown on Windows), giving invalid JPEG data will result in an infinite loop of printing this error:
On Ubuntu, as seen in Actions, it doesn't lock up.