gdevcups: use correct width and height values when allocating memory (upstream bug 691733).
This commit is contained in:
parent
6f55838ebd
commit
eefd1c3191
12
ghostscript-width-height.patch
Normal file
12
ghostscript-width-height.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up ghostscript-9.00/cups/gdevcups.c.width-height ghostscript-9.00/cups/gdevcups.c
|
||||
--- ghostscript-9.00/cups/gdevcups.c.width-height 2011-01-07 11:59:02.093383442 +0000
|
||||
+++ ghostscript-9.00/cups/gdevcups.c 2011-01-07 11:59:48.520453332 +0000
|
||||
@@ -3460,7 +3460,7 @@ cups_put_params(gx_device *pdev, /*
|
||||
sp = ((gx_device_printer *)pdev)->space_params;
|
||||
|
||||
if ((code = gdev_prn_maybe_realloc_memory((gx_device_printer *)pdev, &sp,
|
||||
- width_old, height_old,
|
||||
+ width, height,
|
||||
cups->page_uses_transparency))
|
||||
< 0)
|
||||
return (code);
|
@ -5,7 +5,7 @@ Summary: A PostScript interpreter and renderer
|
||||
Name: ghostscript
|
||||
Version: %{gs_ver}
|
||||
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
|
||||
# Included CMap data is Redistributable, no modification permitted,
|
||||
# see http://bugzilla.redhat.com/487510
|
||||
@ -29,6 +29,7 @@ Patch21: ghostscript-jbig2-image-refcount.patch
|
||||
Patch27: ghostscript-Fontmap.local.patch
|
||||
Patch28: ghostscript-iccprofiles-initdir.patch
|
||||
Patch29: ghostscript-gdevcups-debug-uninit.patch
|
||||
Patch30: ghostscript-width-height.patch
|
||||
|
||||
Requires: urw-fonts >= 1.1, ghostscript-fonts
|
||||
BuildRequires: xz
|
||||
@ -145,6 +146,10 @@ rm -rf libpng zlib jpeg jasper
|
||||
# gdevcups: don't use uninitialized variables in debugging output.
|
||||
%patch29 -p1 -b .gdevcups-debug-uninit
|
||||
|
||||
# gdevcups: use correct width and height values when allocating memory
|
||||
# (upstream bug 691733).
|
||||
%patch30 -p1 -b .width-height
|
||||
|
||||
# Convert manual pages to UTF-8
|
||||
from8859_1() {
|
||||
iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_"
|
||||
@ -332,6 +337,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/libgs.so
|
||||
|
||||
%changelog
|
||||
* Fri Jan 7 2011 Tim Waugh <twaugh@redhat.com> 9.00-8
|
||||
- gdevcups: use correct width and height values when allocating memory
|
||||
(upstream bug 691733).
|
||||
|
||||
* Fri Nov 26 2010 Tim Waugh <twaugh@redhat.com> 9.00-7
|
||||
- Fixed more summaries ending with ".".
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user