diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-03-21 00:31:23 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-03-21 00:31:23 +0000 |
commit | 3b7193dd8bc775557f1e6f89c85b7f7df6592395 (patch) | |
tree | 41febb0e34d018445e8f464a9f867aee8d4dc9ef /gdk-pixbuf/io-tiff.c | |
parent | 22b1b079ef3c55c7a3e6f2bdb873130596b3456d (diff) | |
download | gtk+-3b7193dd8bc775557f1e6f89c85b7f7df6592395.tar.gz |
Avoid a double free error if reading the colormap fails.
* io-tga.c (try_colormap, gdk_pixbuf__tga_stop_load): Avoid a
double free error if reading the colormap fails.
* io-tiff.c (tiff_image_parse): Make TIFFReadRGBAImage stop on
errors, since it may otherwise segfault on certain bad TIFFs.
Diffstat (limited to 'gdk-pixbuf/io-tiff.c')
-rw-r--r-- | gdk-pixbuf/io-tiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk-pixbuf/io-tiff.c b/gdk-pixbuf/io-tiff.c index d0de106376..ff4a3dab15 100644 --- a/gdk-pixbuf/io-tiff.c +++ b/gdk-pixbuf/io-tiff.c @@ -195,7 +195,7 @@ tiff_image_parse (TIFF *tiff, TiffContext *context, GError **error) return NULL; } - if (!TIFFReadRGBAImage (tiff, w, h, rast, 0) || global_error) { + if (!TIFFReadRGBAImage (tiff, w, h, rast, 1) || global_error) { tiff_set_error (error, GDK_PIXBUF_ERROR_FAILED, _("Failed to load RGB data from TIFF file")); |