Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JPEG: Handle errors when saving with libjpeg
If we are going to use my_error_exit(), we must use setjmp() to set up its jump buffer before we start to compress, similar to what already happened in the loading code path. Otherwise, errors in libjpeg will result in a crash when we do a nonlocal goto to an uninitialized pointer. Resolves: #429 Signed-off-by: Simon McVittie <[email protected]>
- Loading branch information