Applied fix for type 1 font copying code SEAC scanner (bug #728710).

This commit is contained in:
Tim Waugh 2011-11-08 09:31:47 +00:00
parent 2998f8d822
commit 95acfdb02b
2 changed files with 25 additions and 1 deletions

17
ghostscript-SEAC.patch Normal file
View File

@ -0,0 +1,17 @@
diff -up ghostscript-9.04/base/gxtype1.c.SEAC ghostscript-9.04/base/gxtype1.c
--- ghostscript-9.04/base/gxtype1.c.SEAC 2011-08-05 12:12:20.000000000 +0100
+++ ghostscript-9.04/base/gxtype1.c 2011-11-08 09:30:19.000262809 +0000
@@ -409,7 +409,12 @@ gs_type1_piece_codes(/*const*/ gs_font_t
cnext;
goto out;
case c2_shortint:
- cip += 2;
+ {
+ short sint = *cip++;
+ sint = (sint << 8) + *cip++;
+ CS_CHECK_PUSH(csp, cstack);
+ *++csp = int2fixed(sint);
+ }
break;
case c2_hstemhm:
hhints += ((csp - cstack) + 1) / 2;

View File

@ -5,7 +5,7 @@ Summary: A PostScript interpreter and renderer
Name: ghostscript
Version: %{gs_ver}
Release: 6%{?dist}
Release: 7%{?dist}
# Included CMap data is Redistributable, no modification permitted,
# see http://bugzilla.redhat.com/487510
@ -24,6 +24,7 @@ Patch5: ghostscript-runlibfileifexists.patch
Patch6: ghostscript-cups-rgbw.patch
Patch7: ghostscript-glyph-crash.patch
Patch8: ghostscript-jbig2dec-nullderef.patch
Patch9: ghostscript-SEAC.patch
Patch10: ghostscript-cups-filters.patch
Patch27: ghostscript-Fontmap.local.patch
Patch28: ghostscript-iccprofiles-initdir.patch
@ -132,6 +133,9 @@ rm -rf libpng zlib jpeg jasper expat
# Applied patch to fix NULL dereference in JBIG2 decoder (bug #501710).
%patch8 -p1 -b .jbig2dec-nullderef
# Applied fix for type 1 font copying code SEAC scanner (bug #728710).
%patch9 -p1 -b .SEAC
# Install CUPS filter convs files in the correct place.
%patch10 -p1 -b .cups-filters
@ -339,6 +343,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libgs.so
%changelog
* Tue Nov 8 2011 Tim Waugh <twaugh@redhat.com> 9.04-7
- Applied fix for type 1 font copying code SEAC scanner (bug #728710).
* Mon Nov 7 2011 Tim Waugh <twaugh@redhat.com> 9.04-6
- Rebuilt for new libpng.