]> www.fi.muni.cz Git - evince.git/commitdiff
tiff: Set stopOnError to zero on TIFFReadRGBAImageOriented() calls
authorJuanjo Marín <juanj.marin@juntadeandalucia.es>
Fri, 29 Apr 2011 23:33:32 +0000 (01:33 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 30 Apr 2011 10:16:47 +0000 (12:16 +0200)
This allows overlooking errors and processing malformed tiff files.
Fixes bug #644806.

backend/tiff/tiff-document.c

index c310b34ae1646ae1a3a83153e31af1d192df6239..ca40397111d18c8b18a52e294b27a2ca8fb8e28c 100644 (file)
@@ -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,