From 2f2b0dbbf86b3b0def86c78e27f7e530e4041308 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Juanjo=20Mar=C3=ADn?= Date: Sat, 30 Apr 2011 01:33:32 +0200 Subject: [PATCH] tiff: Set stopOnError to zero on TIFFReadRGBAImageOriented() calls This allows overlooking errors and processing malformed tiff files. Fixes bug #644806. --- backend/tiff/tiff-document.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.39.3