1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/print/ghostscript8/files/patch-psi-zicc.c
Hiroki Sato b5a670a4ad Update to 8.64. Changes include:
- Improvements to overprint and spot color support in documents with
  transparency, improvements to PDF and PS output, proper handling of
  PDF-specific text rendering modes and support for reading
  AES-encrypted PDF documents.

- Improved handling of CJK text, especially in vertical writing modes.

- Improved memory footprint processing some files at high resolution.

- The handling of color spaces has been moved from PostScript code to
  C.

- A number of the included printer drivers and cups wrappers have been
  updated to support a PDF-based workflow. Also fixed are several
  long-standing bugs in the pcl drivers with respect to duplex,
  resolution and paper tray selection.
2009-03-28 20:05:52 +00:00

13 lines
415 B
C

--- psi/zicc.c
+++ psi/zicc.c 2008-02-05 16:11:59.000000000 +0000
@@ -77,6 +77,9 @@ zseticcspace(i_ctx_t * i_ctx_p)
dict_find_string(op, "N", &pnval);
ncomps = pnval->value.intval;
+ if (2*ncomps > sizeof(range_buff)/sizeof(float))
+ return_error(e_rangecheck);
+
/* verify the DataSource entry */
if (dict_find_string(op, "DataSource", &pstrmval) <= 0)
return_error(e_undefined);