summaryrefslogtreecommitdiff
path: root/psi/zdscpars.c
Commit message (Collapse)AuthorAgeFilesLines
* Update postal address in file headersChris Liddell2023-04-041-3/+3
|
* Update copyright to 2021Chris Liddell2021-03-151-1/+1
|
* Update copyright to 2020Chris Liddell2020-04-101-1/+1
|
* Update source/header file copyright notice to 2019Chris Liddell2019-01-161-1/+1
|
* Check structure types when using the r_ptr macroKen Sharp2018-11-171-0/+1
| | | | | | | | Two more places where we were using the r_ptr macro to cast a PostScript ref object into a structure without thoroughly checking that the object was in fact a structure of the correct type. One case did a partial check, but this is more robust.
* Bug #699801 "zparse_dsc_comments can crash with invalid dsc_state"Ken Sharp2018-09-211-0/+3
| | | | | | | | | | Although zparse_dsc_comments() does check the types of its operands, it wasn't checking the return value from dict_find_string properly. It was effectively assuming that the dictionary parameter was the *correct* dictionary and would contain the key/value pair it needed. Here we check to see if the key has not been found and throw an error if so.
* Update copyright notice with new head office address.Ken Sharp2018-01-301-3/+3
| | | | | | | | | Also update copyright dates. Remove gs_cmdl.ps as we no longer use it, and remove its entry from psfiles.htm. Remove xfonts.htm as this feature (xfont support) is long, long gone.
* A better DSC Parser fix for bug #697800Ken Sharp2017-04-251-2/+4
| | | | | | Commit 06d283c4a20fe7ec727bebb56404242734ea2d70 checked the number of operands, but this is a better fix, since it also correctly checks the type of the dictionary operand, which the previous fix didn't do.
* DSC parser - check number of operands suppliedKen Sharp2017-04-251-0/+2
| | | | | | | | | | Bug 697800 "Null pointer dereference in zparse_dsc_comments()" The custom operator .parse_dsc_comments wasn't checking the number of operands supplied, before attempting to validate them. If not enough were supplied it ended up falling off the bottom of the operand stack. Generate a stackunderflow error when this happens.
* DSC parser - validate parametersKen Sharp2016-10-051-4/+9
| | | | | | | | | Bug #697190 ".initialize_dsc_parser doesn't validate the parameter is a dict type before using it." Regardless of any security implications, its simply wrong for a PostScript operator not to validate its parameter(s). No differences expected.
* Commit of build_consolidation branchChris Liddell2015-07-201-0/+517
Squashed into one commit (see branch for details of the evolution of the branch). This brings gpcl6 and gxps into the Ghostscript build system, and a shared set of graphics library object files for all the interpreters. Also, brings the same configuration options to the pcl and xps products as we have for Ghostscript.