[gs-commits] rev 10924 - trunk/gs/base

larsu at ghostscript.com larsu at ghostscript.com
Mon Mar 15 07:44:38 UTC 2010


Author: larsu
Date: 2010-03-15 07:44:38 +0000 (Mon, 15 Mar 2010)
New Revision: 10924

Modified:
   trunk/gs/base/gdevtfax.c
Log:
Applied Tim Waugh's patch from bug #691171: A NULL check for the argument of
TIFFCleanup was missing, which caused a segfault when opening the output device
failed for any of the devices in gdevtfax.c.



Modified: trunk/gs/base/gdevtfax.c
===================================================================
--- trunk/gs/base/gdevtfax.c	2010-03-15 06:34:34 UTC (rev 10923)
+++ trunk/gs/base/gdevtfax.c	2010-03-15 07:44:38 UTC (rev 10924)
@@ -99,7 +99,8 @@
 {
     gx_device_tfax *const tfdev = (gx_device_tfax *)pdev;
 
-    TIFFCleanup(tfdev->tif);
+    if (tfdev->tif)
+        TIFFCleanup(tfdev->tif);
 
     return gdev_prn_close(pdev);
 }



More information about the gs-commits mailing list