diff options
author | infirit <[email protected]> | 2014-12-10 02:27:51 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-10 02:27:51 +0100 |
commit | cf55d726548132dc05115cd4accf0a4d5f1bf5ee (patch) | |
tree | a88b5651876f74191143d704b4ed17a3326b9295 /backend/tiff/tiff-document.c | |
parent | 07363a38f4f9524b5ff5cae474fff36598d4608a (diff) | |
download | atril-cf55d726548132dc05115cd4accf0a4d5f1bf5ee.tar.bz2 atril-cf55d726548132dc05115cd4accf0a4d5f1bf5ee.tar.xz |
tiff: Set stopOnError to zero on TIFFReadRGBAImageOriented() calls
This allows overlooking errors and processing malformed tiff files.
Taken from evince commit: 2f2b0dbbf86b3b0def86c78e27f7e530e4041308
From: Juanjo MarĂn <[email protected]>
Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=644806
Diffstat (limited to 'backend/tiff/tiff-document.c')
-rw-r--r-- | backend/tiff/tiff-document.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |