diff --git a/ghostscript-incomplete-ccittfax.patch b/ghostscript-incomplete-ccittfax.patch new file mode 100644 index 0000000..4522e60 --- /dev/null +++ b/ghostscript-incomplete-ccittfax.patch @@ -0,0 +1,12 @@ +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 )\ + {\ diff --git a/ghostscript.spec b/ghostscript.spec index a00bf79..87ff656 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -22,6 +22,7 @@ Patch5: ghostscript-runlibfileifexists.patch 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 @@ rm -rf libpng zlib jpeg jasper # 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 @@ rm -rf $RPM_BUILD_ROOT %changelog * Mon Jun 23 2008 Tim Waugh +- 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 8.62-3