id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 3116,boost GIL doesn't properly handle JPEG errors,Giel van Schijndel ,Hailin Jin,"When an error occurs during the decoding of a JPEG file (specifically its header) using jpeg_read_(dimensions|image|view) inside of libjpeg itself the program terminates. This is because libjpeg uses the `error_exit` handler from the current `jpeg_error_mgr` to signal an error. The default `error_exit` handler simply prints a message to stderr and calls `exit(EXIT_FAILURE)`. However, in order to properly handle this error one needs to override this `error_exit handler`. Attached patch does just that, using the same error message, though instead, it uses that message as a description for an `io_error(const char* desc)` generated exception (`std::ios_base::failure`).",Patches,closed,Boost 1.40.0,gil USE GITHUB,Boost 1.39.0,Problem,wontfix,,me@… mateusz@…