Package: ghostscript / 8.71~dfsg2-9+squeeze2
Metadata
| Package | Version | Patches format |
|---|---|---|
| ghostscript | 8.71~dfsg2-9+squeeze2 | 3.0 (quilt) |
Patch series
view the series file| Patch | File delta | Description |
|---|---|---|
| 0743_Fix_pdfwrite_UTF16 BE_XMP.patch | (download) |
base/gdevpdfe.c |
57 53 + 4 - 0 ! |
fix pdfwrite utf16-be safe xmp handling Fix (pdfwrite) bug #691104 "pdfwrite emits garbage in the XMP metadata when DOCINFO pdfmarks contain UTF-16BE text strings" . There were several problems. Firstly the undoing of PostScript string escapes was wrong, Octal escapes consumed too many characters, and several escape sequences weren't recognised. . Secondly the XMP emission didn't expect to receive UTF-16BE strings and didn't convert them to UTF-8 for inclusion in the metadata. . This patch fixes the broken octal escapes, adds teh unprocessed escapes and checks the DOCINFo strings before sending to XMP. If they include the UTF-16BE Byte Order Mark then convert the strings to UTF-8. |
| 0748_Fix_nested_ICCBased_colour_processing.patch | (download) |
psi/zcolor.c |
1 1 + 0 - 0 ! |
fix nested iccbased colour processing Fix colour processing. It was possible for nested ICCBased colour spaces (ie an ICCBased space whose Alternate is another ICCBased space) to cause segmentation faults. . This was due to the fact that the conversion to base colour continuation procedure 'currentbasecolor_cont' was supposed to scan the space from the initial declaration each time round a loop. However a reassignment of an array pointer caused it to rescan from the last processed colour array instead. . Normally this does not cause problems, but in the case of nested ICCBased it caused us to generate an error. . Fixed by re-initialising the array pointer at the start of the loop. |
| 0749_Fix_minor_compile_warnings.patch | (download) |
base/gdevpdfe.c |
8 3 + 5 - 0 ! |
fix minor compile warnings |
| 0751_Fix_dereference_indirect_objects.patch | (download) |
Resource/Init/pdf_draw.ps |
11 8 + 3 - 0 ! |
add missing dereferencing of indirect objects in /mask array |
| 0778_Fix_PDF_trailer_attributes.patch | (download) |
lib/pdf2dsc.ps |
2 1 + 1 - 0 ! |
fix pdf trailer attributes undefined error Update pdf2dsc.ps to match the changes in pdf_main.ps introduced by the rev. 10341. Thanks to William Bader for the patch. |
| 0780_silence_compiler_warning.patch | (download) |
toolbin/bmpcmp.c |
2 1 + 1 - 0 ! |
add cast to bmpcmp.c to quiet useless compiler warning |
| 0782_Fix_signedness_issues.patch | (download) |
psi/write_t2.c |
10 5 + 5 - 0 ! |
fix signedness and other wrong variable comparisons in t2 dict resolve inappropriate variable type (signed vs unsigned) and comparisons with the wrong variable when writing the local subrs info to the serialized T2 Private dictionary. |
| 0785_Fix_pdfwrite_PDFA_UTF16_handling.patch | (download) |
base/gdevpdfe.c |
6 5 + 1 - 0 ! |
fix pdfwrite utf16 handling in pdf/a output Fix (pdfwrite) If producing PDF/A output. and a DOCINFO pdfmark string was UTF_16BE encoded *and* contained a numeric character, then decode_escape incorrectly consumed any numeric characters following the first octal byte of the UTF16 code. . This was caused by decode_escape assuming that octal sequences are terminated by non-numeric characters which is clearly wrong. The octal escape decoding loop is now terminated when : 1) 3 numeric characters are read from the string 2) No more data is available in the string 3) A non-numeric character is encountered in the string. |
| 0788_Fix_setscreen_error.patch | (download) |
Resource/Init/gs_dps2.ps |
2 1 + 1 - 0 ! |
fix error passing setscreen read-only halftone type1 dict Fix obviously wrong code in .fixsethalftonescreen procedure that is used by the setscreen (and setcolorscreen) procedure and caused a PS error if the third 'proc' argument to setscreen is a read-only Halftone type 1 dictionary. Thanks to Jonathan Dagresta for the patch. |
| 0794_Fix_ignore_broken_TT_font.patch | (download) |
base/ttinterp.c |
4 3 + 1 - 0 ! |
fix ignore a class of broken truetype font The font executes an MDRP instruction with point number 28, the glyph only contains 28 points numbered 0 to 27 so the interpreter (correctly) flags an error. . Windows and FT both appear to silently ignore the error and the instruction (definitely the case for FreeType). Modified Ins_MDRP to simply return if the indicated point is outside the number of points in this case. |
| 0810_Fix_pdfwrite_CIDFont_widths.patch | (download) |
Resource/Init/gs_cidfn.ps |
2 1 + 1 - 0 ! |
fix pdfwrite widths for cidfont with unusual fontmatrix The pdfwrite device now considers FDArray fonts' FontMatrix and writes correct W/W2/DW/DW2 widths for CIDFont with unusual FontMatrix. This also fixes a problem gs_font::orig_FontMatrix not being initialized for CIDFont. |
| 0821_Add_missing_newline_in_TTF_debug_msg.patch | (download) |
Resource/Init/gs_ttf.ps |
2 1 + 1 - 0 ! |
add missing newline in a ttf debug message |
| 0822_Upgrade_Adobe_Glyph_List_to_2 0.patch | (download) |
Resource/Init/gs_agl.ps |
5336 4286 + 1050 - 0 ! |
upgrade adobe glyph list to v. 2.0. Upgrade Adobe Glyph List to v. 2.0. AGL is used for character mapping in non-symbolic TrueType fonts in PDF files. |
| 0823_Fix_drop_wrong_raster_optimization.patch | (download) |
base/gxipixel.c |
14 1 + 13 - 0 ! |
fix drop wrong raster optimization in gxipixel.c Fixes bug #691147 customer 861, the optimization to strength reduce the raster operation here is wrong, it is premised on the assumption the colors are opaque. If either texture or source is transparent the strength reduction which effectively ignores the source or pattern is wrong and it will subsequently cause opaque painting. We've simply removed the optimization instead of conditionalizing on opaque cases, because tests indicate the reduction not that significant. The example in the bug report was reduced from a file in the XL ATS 305 test suite. |
| 0824_Fix_PDF_crop_TrimBox_and_CropBox_by_MediaBox.patch | (download) |
Resource/Init/pdf_main.ps |
34 25 + 9 - 0 ! |
fix pdf crop /trimbox and /cropbox by the /mediabox Following PDF reference, version 1.7, section 10.10, crop /TrimBox and /CropBox by the /MediaBox. |
| 0826_Fix_some_compile_errors_and_warnings.patch | (download) |
base/gsnogc.c |
8 4 + 4 - 0 ! |
fix some compile errors and warnings Fixes part of 691149 - void function returning value, thanks to John Wehle for the fix. Also, there were several compiler warnings in this file related to the casting of the gs memory type pointer which have been cleaned up as well. |
| 0827_Fix_possibly_AIX only_compile_error.patch | (download) |
base/gdevpx.c |
12 8 + 4 - 0 ! |
fix a possibly aix-only compile error First half of patch from John Wehle for bug 691149 - vac C compiler on AIX 5.2 does not like function with a void prototype returning a void function e.g. . |
| 0830_Always_use_contone_buffer_in_wtsimdi_device.patch | (download) |
base/gdevwts.c |
9 8 + 1 - 0 ! |
always use contone buffer in wtsimdi device Fixes bug #691154 and the regressions associated with revision 10823. Unfortunately, performance-wise, the wtsimdi device must always use a contone buffer until we've had a chance to see which raster operations can be eliminated correctly. |
| 0869_Open_tiffsep_and_tiffsep1_output_files_as_seekable.patch | (download) |
base/gdevtsep.c |
10 5 + 5 - 0 ! |
open tiffsep and tiffsep1 output files as seekable. All files written by libtiff have to be seekable when writing multiple pages, because libtiff tries to access previously written page dictionaries. This fixes bug 691160. |
| 0881_Revert_korean_example_to_non corrupted_version.patch | (download) |
examples/cjk/gscjk_ak.ps |
8 4 + 4 - 0 ! |
revert korean example to non-corrupted version revert to r8185 version of the korean example - it was removed in r8190 and a corrupted version r9325 was subsequently checked in; found during fixing bug 688437 (incompete font substitution list) |
| 0882_Update_Windows_CJK_font_substitution_list.patch | (download) |
lib/mkcidfm.ps |
371 354 + 17 - 0 ! |
update windows cjk font substitution list updating windows CJK font substitution list for more commonly found MS CJK fonts; bug 688437 |
| 0883_lowercase_fontfile_name_before_matching.patch | (download) |
lib/mkcidfm.ps |
17 17 + 0 - 0 ! |
convert font file name to lower case before matching convert font file name to lowser case before matching; make it possible for upper case ARIALUNI.TTF to match; bug 688437 |
| 0890_Fixes_on_CUPS_Raster_output_device.patch | (download) |
cups/gdevcups.c |
32 23 + 9 - 0 ! |
fixes on cups raster output device Fixes on CUPS Raster output device: - Fixed memory reallocation on bitmap size change. Reallocation is not only needed when dimendions and margins change, but also when the color depth changes. Fixes bugs #691029 and #691108. - Fixed arrayoption() macro in cups_put_params() function. Array values did not get actually set in cups.header data structure. Bug only showed via a compiler warning. - Silenced compiler warning by presetting c0..c3 in cups_map_cmyk() to zero. |
| 0895_pdftoraster_no_exit_until_Ghostscript_sub process_finishes.patch | (download) |
cups/pdftoraster.c |
14 13 + 1 - 0 ! |
let pdftoraster not exit before the ghostscript sub-process finishes. Let pdftoraster not exit before the Ghostscript sub-process finishes. Thanks to Tim Waugh from Red Hat for the patch. |
| 0905_Fix_psdcmyk_segv.patch | (download) |
base/gdevdevn.c |
13 8 + 5 - 0 ! |
fix psdcmyk segv Fix for SEGV with the psdcmyk device on 258-01.ps. This was a fundamental memory problem with any device that used the compressed_color_list functions in gdevdevn.c since a 'restore' could free structures which were still needed by the device. Use stable_memory to avoid this. Bug 691150. |
| 0908_Fix_overprint_logic.patch | (download) |
base/gsstate.c |
2 1 + 1 - 0 ! |
fix overprint logic Change the condition under which we update the overprint device when restoring a graphics state to be more relaxed; rather than updating if the overprint state has changed we now update if it was enabled, or it if it is enabled. . The logic behind this is that it will still fire in all the same conditions it did before, but will also fire when we restore from a state that had it enabled to another state that had it enabled. This should be entirely harmless, but will allow the state to be updated in the case where a colorspace has been updated. . |
| 0924_Fix_TIFFCleanup_segfault_in_gdevtfax.patch | (download) |
base/gdevtfax.c |
3 2 + 1 - 0 ! |
fix tiffcleanup segfault in gdevtfax Applied Tim Waugh's patch from bug #691171: A NULL check for the argument of TIFFCleanup was missing, which caused a segfault when opening the output device failed for any of the devices in gdevtfax.c. |
| 0925_Fix_treat_TIFFSetField_as_floating_point.patch | (download) |
base/gdevtifs.c |
4 2 + 2 - 0 ! |
fix treat tiffsetfield as floating point Partial fix for bug #691172: The tiff resolution tags are floating point values and need to be passed as such to TIFFSetField. |
| 0926_Have_filters_return_2_on_empty_output.patch | (download) |
base/seexec.c |
6 5 + 1 - 0 ! |
have filters return 2 on empty output Don't throw an error when a filter returns 0 bytes and a normal return code. This often happens with eexecDecode filter, which has to return the control to the interpreter after every space character since Adobe no longer adds zeros at the end of the encoded block. Document new return code 2 used by eexecDecode filter. Bug 690909. |
| 0927_Write_TIFF_directories_before_the_page_data.patch | (download) |
base/gdevtfnx.c |
2 2 + 0 - 0 ! |
write tiff directories before the page data Write TIFF directories before the page data. This might help bug #691172 and probably some other non-conforming TIFF readers. |
| 0928_Change_default_TIFF_strip_size_to_one_megabyte.patch | (download) |
base/gdevtifs.h |
2 1 + 1 - 0 ! |
change default tiff strip size to one megabyte. Many fax readers have problems reading TIFF images which are chunked into strips, and one megabyte is larger than the biggest expected fax page. Hence, ghostscript's default TIFF output will be accepted by those readers. |
| 0940_Merge_gs_2_colors_branch.patch | (download) |
Resource/Init/pdf_draw.ps |
15 12 + 3 - 0 ! |
merge gs_2_colors branch This adds a new set of color state information to the graphics/imager state, along with a new non-standard postscript operator .swapcolors to toggle between them. . The Postscript interpreter is updated to use one set of color information for stroking, and the other for all non-stroking colors. . |
| 0941_Include_all_our_defined_fonts_in_substitution_list.patch | (download) |
Resource/Init/gs_fonts.ps |
6 6 + 0 - 0 ! |
include all our defined fonts in substitution list Update the list of face substitutions in .substitutefaces to include all the fonts we define in Fontmap.GS (if not already defined). . Bug #691180, if we have a font defined in the Fontmap then we don't use the additional information in a PDF file FontDescriptor. Instead we stick with whatever font the PS substitution comes up with (if the font is not present). If a member of the family is not defined we do use the |
| 010954_Prepare_fix_cups_dev_segfaults.patch | (download) |
cups/gdevcups.c |
14 10 + 4 - 0 ! |
code clean-ups preparing cups device segfaults fix |
| 010955_Fix_cups_dev_error_out.patch | (download) |
cups/gdevcups.c |
53 24 + 29 - 0 ! |
fix error out in cups device |
| 011117_Fix_execform1_rangecheck.patch | (download) |
base/gdevp14.c |
17 16 + 1 - 0 ! |
fix execform1 rangecheck error |
| 011120_Really_fix_get_color_comp_index.patch | (download) |
cups/gdevcups.c |
144 143 + 1 - 0 ! |
fix properly get_color_comp_index() method |
| 011122_Add_parens_and_init_alloc_mem.patch | (download) |
cups/gdevcups.c |
10 7 + 3 - 0 ! |
add some parantheses and init allocated memory |
| 011135_cups_dev_remove_globals.patch | (download) |
cups/gdevcups.c |
527 260 + 267 - 0 ! |
make cups raster output device work in multi-threaded mode |
| 011149_Fix_page_geometry_segfaults.patch | (download) |
cups/gdevcups.c |
190 118 + 72 - 0 ! |
fix segfaults on incorrect page geometry parameters |
| 011151_Fix_VMerror_in_debug_build.patch | (download) |
base/gsalloc.c |
2 1 + 1 - 0 ! |
fix vmerror in copydevice in debug build |
| 011156_Fix_warnings_after_segfaults_fix.patch | (download) |
cups/gdevcups.c |
12 10 + 2 - 0 ! |
fix compiler warnings after cups device segfaults fix |
| 011124_Fix_overprint.patch | (download) |
base/gsstate.c |
8 6 + 2 - 0 ! |
fix overprint |
| 011125_Ensure_BuildChar_not_null_before_use.patch | (download) |
psi/zfapi.c |
2 1 + 1 - 0 ! |
ensure buildchar is not null before accessing its content |
| 0951_add p to tools.patch | (download) |
lib/bdftops |
2 1 + 1 - 0 ! |
adding -p- and -dsafer to many posix shell scripts |
| 0950_CVE 2010 1628.patch | (download) |
psi/ialloc.c |
19 11 + 8 - 0 ! |
fix memory corruption at stack overflow: cve-2010-1628 |
| 011547_cus_dev_high_memory_rendering_support.patch | (download) |
cups/gdevcups.c |
10 6 + 4 - 0 ! |
improve cups device support for rendering with high memory demands |
| 1001_install_cjk_examples.patch | (download) |
base/unixinst.mak |
6 6 + 0 - 0 ! |
install cjk example files |
| 1002_ps2pdf_man_fix.patch | (download) |
man/de/ps2pdf.1 |
35 22 + 13 - 0 ! |
document ps2pdf14 in ps2pdf manpage |
| 1006_system jasper.patch | (download) |
base/sjpx.c |
9 0 + 9 - 0 ! |
avoid calling routine not available in official libjasper |
| 1007_fix_pphs_script_not_lib.patch | (download) |
base/unixinst.mak |
4 2 + 2 - 0 ! |
install pphs as a user script, not a library |
| 1008_CVE 2009 4270.patch | (download) |
base/gsmisc.c |
2 1 + 1 - 0 ! |
--- |
| 1009_fix build of executables.patch | (download) |
base/unix-dll.mak |
4 2 + 2 - 0 ! |
fix build "gs" as executable (not shared library) |
| 2001_docdir_fix_for_debian.patch | (download) |
base/Makefile.in |
4 2 + 2 - 0 ! |
set docdir appropriately for debian |
| 2002_gs_man_fix_debian.patch | (download) |
man/gs.1 |
15 8 + 7 - 0 ! |
fixes for gs.1 (debian specific path adjustments) |
