summaryrefslogtreecommitdiff
path: root/base/gsdevmem.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
|
* Bug 701657: Allocate "memory" device in immovable gc memoryChris Liddell2019-10-071-1/+1
| | | | | | | | | | | Devices are supposed to be allocated in memory that cannot relocate (i.e. non-gc memory or an immovable allocation). The memory device accessible from Postscript (makeimagedevice/makewordimagedevice) was being created in regular, relocatable gc memory. This caused an invalid memory access when cleaning up subclassed devices, as the one device in the chain may have moved. So switch to using an immovable allocation.
* Ensure return code of gs_bbox_transform_inverse always checked.Robin Watts2019-02-041-7/+10
| | | | Spotted this while debugging something else.
* Update source/header file copyright notice to 2019Chris Liddell2019-01-161-1/+1
|
* 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 crash with bad data supplied to makeimagedeviceKen Sharp2016-12-211-0/+12
| | | | | | | | | | | | | | | | | | Bug #697450 "Null pointer dereference in gx_device_finalize()" The problem here is that the code to finalise a device unconditionally frees the icc_struct member of the device structure. However this particular (weird) device is not setup as a normal device, probably because its very, very ancient. Its possible for the initialisation of the device to abort with an error before calling gs_make_mem_device() which is where the icc_struct member gets allocated (or set to NULL). If that happens, then the cleanup code tries to free the device, which calls finalize() which tries to free a garbage pointer. Setting the device memory to 0x00 after we allocate it means that the icc_struct member will be NULL< and our memory manager allows for that happily enough, which avoids the problem.
* Remove MarginsHWResolution non-standard device parameterRay Johnston2016-12-021-4/+2
|
* Add 'fall through' comments to many switch cases to satisfy CoverityKen Sharp2016-06-061-0/+4
|
* Commit of build_consolidation branchChris Liddell2015-07-201-0/+235
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.