Merge branch 'f13' into f14
This commit is contained in:
commit
fede8614e7
25
ghostscript-jbig2-image-refcount.patch
Normal file
25
ghostscript-jbig2-image-refcount.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
diff -up ghostscript-8.71/jbig2dec/jbig2_image.c.jbig2-image-refcount ghostscript-8.71/jbig2dec/jbig2_image.c
|
||||||
|
--- ghostscript-8.71/jbig2dec/jbig2_image.c.jbig2-image-refcount 2010-08-05 14:55:56.417043303 +0100
|
||||||
|
+++ ghostscript-8.71/jbig2dec/jbig2_image.c 2010-08-05 14:56:46.796169065 +0100
|
||||||
|
@@ -60,15 +60,18 @@ Jbig2Image* jbig2_image_new(Jbig2Ctx *ct
|
||||||
|
/* clone an image pointer by bumping its reference count */
|
||||||
|
Jbig2Image* jbig2_image_clone(Jbig2Ctx *ctx, Jbig2Image *image)
|
||||||
|
{
|
||||||
|
- image->refcount++;
|
||||||
|
+ if (image)
|
||||||
|
+ image->refcount++;
|
||||||
|
return image;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* release an image pointer, freeing it it appropriate */
|
||||||
|
void jbig2_image_release(Jbig2Ctx *ctx, Jbig2Image *image)
|
||||||
|
{
|
||||||
|
- image->refcount--;
|
||||||
|
- if (!image->refcount) jbig2_image_free(ctx, image);
|
||||||
|
+ if (image) {
|
||||||
|
+ image->refcount--;
|
||||||
|
+ if (!image->refcount) jbig2_image_free(ctx, image);
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* free a Jbig2Image structure and its associated memory */
|
@ -5,7 +5,7 @@ Summary: A PostScript interpreter and renderer
|
|||||||
Name: ghostscript
|
Name: ghostscript
|
||||||
Version: %{gs_ver}
|
Version: %{gs_ver}
|
||||||
|
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
|
|
||||||
# Included CMap data is Redistributable, no modification permitted,
|
# Included CMap data is Redistributable, no modification permitted,
|
||||||
# see http://bugzilla.redhat.com/487510
|
# see http://bugzilla.redhat.com/487510
|
||||||
@ -36,6 +36,7 @@ Patch17: ghostscript-tif-fail-close.patch
|
|||||||
Patch18: ghostscript-tiff-default-strip-size.patch
|
Patch18: ghostscript-tiff-default-strip-size.patch
|
||||||
Patch19: ghostscript-tiff-fixes.patch
|
Patch19: ghostscript-tiff-fixes.patch
|
||||||
Patch20: ghostscript-CVE-2010-1628.patch
|
Patch20: ghostscript-CVE-2010-1628.patch
|
||||||
|
Patch21: ghostscript-jbig2-image-refcount.patch
|
||||||
|
|
||||||
Requires: urw-fonts >= 1.1, ghostscript-fonts
|
Requires: urw-fonts >= 1.1, ghostscript-fonts
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
@ -171,6 +172,9 @@ rm -rf libpng zlib jpeg jasper
|
|||||||
# overflow, bug #592492).
|
# overflow, bug #592492).
|
||||||
%patch20 -p1 -b .CVE-2010-1628
|
%patch20 -p1 -b .CVE-2010-1628
|
||||||
|
|
||||||
|
# Avoid another NULL pointer dereference in jbig2 code (bug #621569).
|
||||||
|
%patch21 -p1 -b .jbig2-image-refcount
|
||||||
|
|
||||||
# Convert manual pages to UTF-8
|
# Convert manual pages to UTF-8
|
||||||
from8859_1() {
|
from8859_1() {
|
||||||
iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_"
|
iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_"
|
||||||
@ -350,6 +354,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/libgs.so
|
%{_libdir}/libgs.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 5 2010 Tim Waugh <twaugh@redhat.com> 8.71-11
|
||||||
|
- Avoid another NULL pointer dereference in jbig2 code (bug #621569).
|
||||||
|
|
||||||
* Fri Jul 16 2010 Tim Waugh <twaugh@redhat.com> 8.71-10
|
* Fri Jul 16 2010 Tim Waugh <twaugh@redhat.com> 8.71-10
|
||||||
- Applied patch to fix CVE-2010-1628 (memory corruption at PS stack
|
- Applied patch to fix CVE-2010-1628 (memory corruption at PS stack
|
||||||
overflow, bug #592492).
|
overflow, bug #592492).
|
||||||
|
Loading…
Reference in New Issue
Block a user