rpms/ghostscript/F-11 ghostscript-tif-fail-close.patch, NONE, 1.1 ghostscript.spec, 1.204, 1.205

Tim Waugh twaugh at fedoraproject.org
Mon Mar 15 16:33:22 UTC 2010


Author: twaugh

Update of /cvs/pkgs/rpms/ghostscript/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3138

Modified Files:
	ghostscript.spec 
Added Files:
	ghostscript-tif-fail-close.patch 
Log Message:
* Mon Mar 15 2010 Tim Waugh <twaugh at redhat.com> 8.71-5
- Don't segfault closing tiffg3 device if opening failed (bug #571520).


ghostscript-tif-fail-close.patch:
 gdevtfax.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- NEW FILE ghostscript-tif-fail-close.patch ---
diff -up ghostscript-8.71/base/gdevtfax.c.tif-fail-close ghostscript-8.71/base/gdevtfax.c
--- ghostscript-8.71/base/gdevtfax.c.tif-fail-close	2010-03-12 10:57:43.514750465 +0000
+++ ghostscript-8.71/base/gdevtfax.c	2010-03-12 10:58:38.253627230 +0000
@@ -97,7 +97,8 @@ tfax_close(gx_device * pdev)
 {
     gx_device_tfax *const tfdev = (gx_device_tfax *)pdev;
 
-    TIFFCleanup(tfdev->tif);
+    if (tfdev->tif)
+        TIFFCleanup(tfdev->tif);
 
     return gdev_prn_close(pdev);
 }


Index: ghostscript.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ghostscript/F-11/ghostscript.spec,v
retrieving revision 1.204
retrieving revision 1.205
diff -u -p -r1.204 -r1.205
--- ghostscript.spec	15 Mar 2010 16:31:08 -0000	1.204
+++ ghostscript.spec	15 Mar 2010 16:33:22 -0000	1.205
@@ -31,6 +31,7 @@ Patch12: ghostscript-pdftoraster-exit.pa
 Patch13: ghostscript-ldflags.patch
 Patch14: ghostscript-pdf2dsc.patch
 Patch15: ghostscript-cups-realloc-color-depth.patch
+Patch16: ghostscript-tif-fail-close.patch
 
 Requires: urw-fonts >= 1.1, ghostscript-fonts
 BuildRequires: xz
@@ -139,6 +140,9 @@ rm -rf libpng zlib jpeg jasper
 # Reallocate memory in gdevcups when color depth changes (bug #563313).
 %patch15 -p1 -b .cups-realloc-color-depth
 
+# Don't segfault closing tiffg3 device if opening failed (bug #571520).
+%patch16 -p1 -b .tif-fail-close
+
 # Convert manual pages to UTF-8
 from8859_1() {
 	iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_"
@@ -321,6 +325,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %changelog
 * Mon Mar 15 2010 Tim Waugh <twaugh at redhat.com> 8.71-5
+- Don't segfault closing tiffg3 device if opening failed (bug #571520).
 - Don't revert gdevcups y-axis change (bug #541604).
 - Reallocate memory in gdevcups when color depth changes (bug #563313).
 



More information about the scm-commits mailing list