rpms/ghostscript/F-9 ghostscript-incomplete-ccittfax.patch, NONE, 1.1 ghostscript.spec, 1.171, 1.172

Tim Waugh (twaugh) fedora-extras-commits at redhat.com
Mon Jun 23 14:13:39 UTC 2008


Author: twaugh

Update of /cvs/pkgs/rpms/ghostscript/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9643

Modified Files:
	ghostscript.spec 
Added Files:
	ghostscript-incomplete-ccittfax.patch 
Log Message:
* Mon Jun 23 2008 Tim Waugh <twaugh at redhat.com>
- Applied patch to work around bug #229174.


ghostscript-incomplete-ccittfax.patch:

--- NEW FILE ghostscript-incomplete-ccittfax.patch ---
diff -up ghostscript-8.62/src/scfd.c.incomplete-ccittfax ghostscript-8.62/src/scfd.c
--- ghostscript-8.62/src/scfd.c.incomplete-ccittfax	2007-09-25 14:31:24.000000000 +0100
+++ ghostscript-8.62/src/scfd.c	2008-06-23 14:58:17.000000000 +0100
@@ -161,7 +161,7 @@ s_CFD_release(stream_state * st)
 /* makeup codes efficiently, since these are always a multiple of 64. */
 #define invert_data(rlen, black_byte, makeup_action, d)\
 	if ( rlen > qbit )\
-	{	*q++ ^= (1 << qbit) - 1;\
+	{	if (q >= ss->lbuf) *q++ ^= (1 << qbit) - 1; else q++;\
 		rlen -= qbit;\
 		switch ( rlen >> 3 )\
 		{\


Index: ghostscript.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ghostscript/F-9/ghostscript.spec,v
retrieving revision 1.171
retrieving revision 1.172
diff -u -r1.171 -r1.172
--- ghostscript.spec	23 Jun 2008 12:00:00 -0000	1.171
+++ ghostscript.spec	23 Jun 2008 14:12:51 -0000	1.172
@@ -22,6 +22,7 @@
 Patch6: ghostscript-system-jasper.patch
 Patch7: ghostscript-pksmraw.patch
 Patch8: ghostscript-r8591.patch
+Patch9: ghostscript-incomplete-ccittfax.patch
 
 Requires: urw-fonts >= 1.1, ghostscript-fonts
 BuildRequires: libjpeg-devel, libXt-devel
@@ -100,6 +101,9 @@
 # Applied patch from upstream to fix box_fill_path for shfill (bug #452348).
 %patch8 -p1 -b .r8591
 
+# Applied patch to work around bug #229174.
+%patch9 -p1 -b .incomplete-ccittfax
+
 # Convert manual pages to UTF-8
 from8859_1() {
 	iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_"
@@ -274,6 +278,7 @@
 
 %changelog
 * Mon Jun 23 2008 Tim Waugh <twaugh at redhat.com>
+- Applied patch to work around bug #229174.
 - Applied patch from upstream to fix box_fill_path for shfill (bug #452348).
 
 * Mon Mar 31 2008 Tim Waugh <twaugh at redhat.com> 8.62-3




More information about the fedora-extras-commits mailing list