summaryrefslogtreecommitdiff
path: root/fitz/image_jpeg.c
AgeCommit message (Collapse)Author
2013-02-20Bug 693639: fix warnings.Tor Andersson
Thanks to zeniko.
2012-12-08Bug 693290: Missed line from earlier patch causing SEGV.Robin Watts
A NULL pointer dereference could be caused in error cases due to me failing to apply zenikos patch correctly.
2012-12-03Fix potential infinite loop in jpeg error handling code.Robin Watts
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.
2012-11-30Bug 693290: Various fixes found from fuzzing.Robin Watts
Thanks to zeniko for finding various problems and submitting a patch that fixes them. This commit covers the simpler issues from his patch; other commits will follow shortly. * Out of range LZW codes. * Buffer overflows and error handling in image_jpeg.c * Buffer overflows in tiff handling * buffer overflows in cmap parsing. * Potential double free in font handling. * Buffer overflow in pdf_form.c * use of uninitialised value in error case in pdf_image.c * NULL pointer dereference in xps_outline.c
2012-03-06Split fitz.h/mupdf.h into internal/external headers.Robin Watts
Attempt to separate public API from internal functions.
2012-02-21Set default DPI in jpeg images if the file says 0.Tor Andersson
2012-02-03Be consistent about passing a fz_context argument in pixmap functions.Tor Andersson
2012-01-30Move PNG, JPEG and TIFF image loading from muxps into fitz.Tor Andersson