diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-12-03 13:14:18 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-12-03 16:28:52 +0000 |
commit | f6b64c3e6e3c91f71c4febe35037a1cb57fe5461 (patch) | |
tree | 52c7c7407156d03ba06f7b86b21854da6e5d5a18 /android | |
parent | 62320204bf806686dd07d27d8110670914a874ca (diff) | |
download | mupdf-f6b64c3e6e3c91f71c4febe35037a1cb57fe5461.tar.xz |
Fix potential infinite loop in jpeg error handling code.
Turns out that jpeg_finish_decompress can throw errors, hence
can cause an infinite loop. This is fixed here by changing the
jpeg error code to be fz_throw based.
Thanks to zeniko for this patch.
This highlights something that I hadn't fully appreciated before;
anything that throws in a fz_always region will reenter that region.
I think I have a way to fix this so that any throws in the
fz_always region go immediately to the fz_catch.
Diffstat (limited to 'android')
0 files changed, 0 insertions, 0 deletions