Applied patch to fix NULL dereference in bbox driver (bug #591624).
This commit is contained in:
		
							parent
							
								
									f35503ceee
								
							
						
					
					
						commit
						92552fba1e
					
				
							
								
								
									
										12
									
								
								ghostscript-bbox-close.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								ghostscript-bbox-close.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | |||||||
|  | diff -up ghostscript-8.71/base/gdevbbox.c.bbox-close ghostscript-8.71/base/gdevbbox.c
 | ||||||
|  | --- ghostscript-8.71/base/gdevbbox.c.bbox-close	2010-01-19 15:48:57.000000000 +0000
 | ||||||
|  | +++ ghostscript-8.71/base/gdevbbox.c	2010-09-02 13:03:37.742943978 +0100
 | ||||||
|  | @@ -249,7 +249,7 @@ bbox_close_device(gx_device * dev)
 | ||||||
|  |  	 * This device was created as a wrapper for a compositor. | ||||||
|  |  	 * Just free the devices. | ||||||
|  |  	 */ | ||||||
|  | -	int code = (bdev->forward_open_close ? gs_closedevice(tdev) : 0);
 | ||||||
|  | +	int code = (tdev && bdev->forward_open_close ? gs_closedevice(tdev) : 0);
 | ||||||
|  |   | ||||||
|  |  	gs_free_object(dev->memory, dev, "bbox_close_device(composite)"); | ||||||
|  |  	return code; | ||||||
| @ -40,6 +40,7 @@ Patch21: ghostscript-jbig2-image-refcount.patch | |||||||
| Patch22: ghostscript-SEARCH_HERE_FIRST.patch | Patch22: ghostscript-SEARCH_HERE_FIRST.patch | ||||||
| Patch23: ghostscript--P-.patch | Patch23: ghostscript--P-.patch | ||||||
| Patch24: ghostscript-epstopdf-failure.patch | Patch24: ghostscript-epstopdf-failure.patch | ||||||
|  | Patch25: ghostscript-bbox-close.patch | ||||||
| 
 | 
 | ||||||
| Requires: urw-fonts >= 1.1, ghostscript-fonts | Requires: urw-fonts >= 1.1, ghostscript-fonts | ||||||
| BuildRequires: xz | BuildRequires: xz | ||||||
| @ -186,6 +187,9 @@ rm -rf libpng zlib jpeg jasper | |||||||
| # Avoid epstopdf failure using upstream patch (bug #627390). | # Avoid epstopdf failure using upstream patch (bug #627390). | ||||||
| %patch24 -p1 -b .epstopdf-failure | %patch24 -p1 -b .epstopdf-failure | ||||||
| 
 | 
 | ||||||
|  | # Applied patch to fix NULL dereference in bbox driver (bug #591624). | ||||||
|  | %patch25 -p1 -b .bbox-close | ||||||
|  | 
 | ||||||
| # 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}_" | ||||||
| @ -375,6 +379,7 @@ rm -rf $RPM_BUILD_ROOT | |||||||
| 
 | 
 | ||||||
| %changelog | %changelog | ||||||
| * Thu Sep  2 2010 Tim Waugh <twaugh@redhat.com> 8.71-12 | * Thu Sep  2 2010 Tim Waugh <twaugh@redhat.com> 8.71-12 | ||||||
|  | - Applied patch to fix NULL dereference in bbox driver (bug #591624). | ||||||
| - Applied upstream patch to fix iname.c segfault (bug #465311). | - Applied upstream patch to fix iname.c segfault (bug #465311). | ||||||
| 
 | 
 | ||||||
| * Thu Aug 26 2010 Tim Waugh <twaugh@redhat.com> 8.71-11 | * Thu Aug 26 2010 Tim Waugh <twaugh@redhat.com> 8.71-11 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user