- Applied patch to work around bug #229174.

This commit is contained in:
Tim Waugh 2008-06-23 14:11:34 +00:00
parent d6a8216e11
commit 733f9f4f59
2 changed files with 17 additions and 0 deletions

View File

@ -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 )\
{\

View File

@ -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 <twaugh@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@redhat.com> 8.62-3