- Try out a work-around for bug #465311.

This commit is contained in:
Tim Waugh 2008-10-17 11:14:05 +00:00
parent c03198f2b5
commit e723084803
2 changed files with 21 additions and 1 deletions

13
ghostscript-465311.patch Normal file
View File

@ -0,0 +1,13 @@
diff -up ghostscript-8.63/src/iname.c.465311 ghostscript-8.63/src/iname.c
--- ghostscript-8.63/src/iname.c.465311 2008-10-17 11:52:31.000000000 +0100
+++ ghostscript-8.63/src/iname.c 2008-10-17 11:53:08.000000000 +0100
@@ -415,7 +415,8 @@ names_trace_finish(name_table * nt, gc_s
if (nt->sub[i].names == 0 && gcst != 0) {
/* Mark the just-freed sub-table as unmarked. */
o_set_unmarked((obj_header_t *)sub - 1);
- o_set_unmarked((obj_header_t *)ssub - 1);
+ if (ssub != 0)
+ o_set_unmarked((obj_header_t *)ssub - 1);
}
}
if (i == 0)

View File

@ -5,7 +5,7 @@ Summary: A PostScript(TM) interpreter and renderer.
Name: ghostscript
Version: %{gs_ver}
Release: 3%{?dist}
Release: 4%{?dist}
License: GPLv2
URL: http://www.ghostscript.com/
@ -21,6 +21,7 @@ Patch4: ghostscript-fPIC.patch
Patch5: ghostscript-runlibfileifexists.patch
Patch6: ghostscript-system-jasper.patch
Patch7: ghostscript-pksmraw.patch
Patch8: ghostscript-465311.patch
Requires: urw-fonts >= 1.1, ghostscript-fonts
BuildRequires: libjpeg-devel, libXt-devel
@ -104,6 +105,9 @@ rm -rf libpng zlib jpeg jasper
# Fix pksmraw output (bug #308211). Still needed in 8.63.
%patch7 -p1 -b .pksmraw
# Try out a work-around for bug #465311.
%patch8 -p1 -b .465311
# Convert manual pages to UTF-8
from8859_1() {
iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_"
@ -288,6 +292,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libgs.so
%changelog
* Fri Oct 17 2008 Tim Waugh <twaugh@redhat.com> 8.63-4
- Try out a work-around for bug #465311.
* Wed Oct 15 2008 Tim Waugh <twaugh@redhat.com> 8.63-3
- Don't ship fixmswrd.pl as it pulls in perl (bug #463948).