From: Juanjo MarĂ­n Date: Fri, 29 Apr 2011 23:33:32 +0000 (+0200) Subject: tiff: Set stopOnError to zero on TIFFReadRGBAImageOriented() calls X-Git-Tag: 3.0.2~9 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=evince.git;a=commitdiff_plain;h=2f2b0dbbf86b3b0def86c78e27f7e530e4041308 tiff: Set stopOnError to zero on TIFFReadRGBAImageOriented() calls This allows overlooking errors and processing malformed tiff files. Fixes bug #644806. --- diff --git a/backend/tiff/tiff-document.c b/backend/tiff/tiff-document.c index c310b34a..ca403971 100644 --- a/backend/tiff/tiff-document.c +++ b/backend/tiff/tiff-document.c @@ -293,7 +293,7 @@ tiff_document_render (EvDocument *document, TIFFReadRGBAImageOriented (tiff_document->tiff, width, height, (uint32 *)pixels, - orientation, 1); + orientation, 0); pop_handlers (); /* Convert the format returned by libtiff to @@ -378,7 +378,7 @@ tiff_document_get_thumbnail (EvDocument *document, TIFFReadRGBAImageOriented (tiff_document->tiff, width, height, (uint32 *)pixels, - ORIENTATION_TOPLEFT, 1); + ORIENTATION_TOPLEFT, 0); pop_handlers (); scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf,