From cf55d726548132dc05115cd4accf0a4d5f1bf5ee Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 10 Dec 2014 02:27:51 +0100 Subject: tiff: Set stopOnError to zero on TIFFReadRGBAImageOriented() calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows overlooking errors and processing malformed tiff files. Taken from evince commit: 2f2b0dbbf86b3b0def86c78e27f7e530e4041308 From: Juanjo MarĂ­n Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=644806 --- backend/tiff/tiff-document.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend') diff --git a/backend/tiff/tiff-document.c b/backend/tiff/tiff-document.c index cb4ebada..1341900e 100644 --- a/backend/tiff/tiff-document.c +++ b/backend/tiff/tiff-document.c @@ -297,7 +297,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 @@ -382,7 +382,7 @@ tiff_document_render_pixbuf (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, -- cgit v1.2.1