summaryrefslogtreecommitdiff
path: root/psi/iinit.c
Commit message (Collapse)AuthorAgeFilesLines
* Update postal address in file headersChris Liddell2023-04-041-2/+2
|
* Bug 706389: Fix versioning format consistencyChris Liddell2023-02-271-3/+7
| | | | | | | | | | | | | The main code issue with this bug was that the banner printed on startup is printed from Postscript, and Postscript's cvs operator doesn't allow for dictating the number of digits it outputs so the number 00 will always end up as the string "0", or 01 as "1". So our 10.01.0 version would be printed as "10.1.0". To address this, as a ".revisionstring" entry to systemdict, created during startup, the string is created in C, so we control the format. The remaining issues need to be address as part of the release process.
* oss-fuzz 46672: Avoid PS stack extensions from pdfi errorChris Liddell2022-04-141-2/+2
| | | | | | | | | | | | | | pdfi was using the standard gs_error_stackoverflow error code when the pdfi operand stack overflowed. Returning that to the Postscript interpreter caused the interpreter to attempt to extend the Postscript op stack with a new block with zero requested new elements. This, in turn, caused the garbage collector to traverse the previous op stack block, and find no longer valid objects. Leading to trying to mark objects freed by a restore. The solution is to add a specific gs_error_pdf_stackoverflow, so we can still signal the appropriate error, but avoid confusing the Postscript interpreter.
* Update copyright to 2021Chris Liddell2021-03-151-1/+1
|
* Update copyright to 2020Chris Liddell2020-04-101-1/+1
|
* Bug 702151: Avoid truncating pointers in debug code.Robin Watts2020-03-171-2/+2
| | | | | | Introduce a PRI_INTPTR and use that to consistently display pointers. We avoid using %p, as that displays inconsistently between platforms. Sometimes it does 0x%x, sometimes just %x.
* Update source/header file copyright notice to 2019Chris Liddell2019-01-161-1/+1
|
* Fix arg_copy leaks.Robin Watts2018-09-051-12/+30
| | | | | | | | | | | | | When handling -d or -s args, the code currently arg_copies the string it gets back, then uses that copied block to make postscript names from. Here we change the code so that postscript names are made in a slightly different way, so they copy the string content. This means we can free the arg_copied block afterwards, solving the leaks. While we are here, remove a layer of nasty variable hiding macros that do nothing but confuse things.
* 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.
* Fix segfault with "all devices" test.Chris Liddell2018-01-161-5/+6
| | | | | | | | | | Turns out there's a group of devices that actually open a file as they are being closed, which causes problems if we've already freed up the I/O device table, which commit 2e86e7f64e added. So, rejig the Postscript interpreter's I/O device table init/finit functions to allow later freeing of the table (whilst keeping the two consistent in their parameters).
* Bug 698842: cleanup the io_dev table and contentsChris Liddell2018-01-151-1/+7
| | | | | This is slightly complicated as (in the Ghostscript case) the table can be freed explicitly, or by the garbager.
* Commit of build_consolidation branchChris Liddell2015-07-201-0/+543
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.