summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove the os2prn deviceChris Liddell2016-10-107-689/+1
|
* Remove the mswindll and mswin devicesChris Liddell2016-10-1021-3208/+4
| | | | As well as the (long non-functional/non-useful) Windows "xfont" code.
* Remove the macos deviceChris Liddell2016-10-108-1706/+0
|
* Remove sgirgb deviceChris Liddell2016-10-108-393/+2
|
* Remove the various "vga" devicesChris Liddell2016-10-1011-1915/+1
|
* Remove svga device(s)Chris Liddell2016-10-105-1102/+0
|
* Remove the sunview deviceChris Liddell2016-10-105-706/+0
|
* Remove the sunhmono deviceChris Liddell2016-10-107-120/+2
|
* Remove sparc (printer) deviceChris Liddell2016-10-104-20/+0
|
* Remove the att3b1 deviceChris Liddell2016-10-106-815/+0
|
* Remove the herc deviceChris Liddell2016-10-105-489/+0
|
* Remove lvga256 deviceChris Liddell2016-10-105-348/+0
|
* Remove the s3ga deviceChris Liddell2016-10-104-11/+0
|
* Remove vgalib deviceChris Liddell2016-10-104-393/+0
|
* Remove omni deviceChris Liddell2016-10-107-2452/+1
|
* Remove mag16 and mag256 devicesChris Liddell2016-10-104-357/+2
|
* Remove the moribund Mac Classic specific files.Chris Liddell2016-10-105-1919/+0
|
* Remove doc sections about making SAFER the defaultChris Liddell2016-10-101-16/+0
|
* Remove from the documentation the stated intention to make -dSAFER theKen Sharp2016-10-101-5/+0
| | | | default.
* Fix pdfmark argument validationKen Sharp2016-10-101-0/+6
| | | | | | | | | | | | This doesn't fit neatly into any category, its a PostScript 'operator' but it is only implemented for the pdfwrite device... The pdfmark operator takes a mark, a series of arguments and a name object. Zero argument sis valid, but the absence of a name object is not. We weren't checking for the absence of a name object, or validating its type. No differences expected.
* Coverity ID 137703 - remove some dead codeKen Sharp2016-10-101-3/+0
|
* Bug 697193: status operator honour SAFER optionChris Liddell2016-10-081-5/+11
|
* Bug 697204: fully init lock objectChris Liddell2016-10-081-0/+1
| | | | | The scheduler field (which is relocatable) was not being initialisedm causing a segfault in teh garbage collector
* Bug 697203: check for sufficient params in .sethalftone5Chris Liddell2016-10-081-2/+10
| | | | and param types
* Check for NULL return from memory allocationChris Liddell2016-10-081-0/+2
|
* Bug 696860 remove memcmp of structs in gscrdp.cMichael Vrhel2016-10-053-10/+29
|
* Bug 697179: Reference count device icc profileChris Liddell2016-10-051-0/+1
| | | | when copying a device
* Bug 697178: Add a file permissions callbackChris Liddell2016-10-057-6/+53
| | | | | | For the rare occasions when the graphics library directly opens a file (currently for reading), this allows us to apply any restrictions on file access normally applied in the interpteter.
* Bug 697169: Be rigorous with SAFER permissionsChris Liddell2016-10-051-0/+3
| | | | | Once we've opened our input file from the command line, enforce the SAFER rules.
* Use ToUnicode for substituted CIDFontsChris Liddell2016-10-056-95/+177
| | | | | | | | | | | When we substitute a CIDFont in a PDF file with a TTF from disk, use the ToUnicode CMap (if available) to extract Unicode values. In a lot of case, this gets a more accurate character code to glyph mapping than the previous reliance on the low level glyph ordering from the TTF. This also meant being more robust for broken ToUnicode CMap. Also, an additional option (-dIgnoreToUnicode) to skip parsing of the ToUnicode CMap - for cases where a correctly formed ToUnicode is semantically wrong.
* Bug 696859 memcmp of struct removal in gscrd.cMichael Vrhel2016-10-051-12/+27
|
* Coverity ID 137283 - pdfwrite - remove some redundant codeKen Sharp2016-10-051-10/+2
| | | | | | | | | I had left some code that catered for a UTF16 surrogate pair promoted to UTF32, converting the result to UTF8. But I didn't implement the UTF32 promotion, leaving it as a potential future enhancement. However, Coverity whinges about the test always being true, so here just remove the code. Its trivial enough to add in if we ever need it.
* 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.
* Prevent dereference of NULL device methodKen Sharp2016-10-051-4/+8
| | | | | | | | | | | | | | | | Bug #697189 ".gethardwareparams crashes with any special device" Another NULL device method problem. As noted previously, the original design intended that device methods should never be NULL, but this has been ignored over the years leading to the current mess of some methods being NULL accidentally, some being NULL deliberately and having different effects when NULL, and some methods never being NULL. While I do still intend to try and rectify this one day, in the meantime add a check to make sure the method is not NULL before trying to execute it in this case. No differences expected
* Fix misplace parenthesis and missing constMichael Vrhel2016-10-042-3/+3
|
* Bug 696858 remove memcmp struct in gscie.cMichael Vrhel2016-10-041-5/+57
|
* Bug 696854 remove memcmp of structs in gdevdevn.cMichael Vrhel2016-10-041-8/+46
|
* Bug 696862 remove memcmp() color info structureMichael Vrhel2016-10-044-6/+41
|
* pdfwrite - fix ToUnicode CMap sequence consolidationKen Sharp2016-10-031-1/+1
| | | | | | | | | | | | | | | | | Bug #697176 "ToUnicode CMap generation broken in 9.20" The reworking to handle the current version of ToUnicode CMap missed a case where the size of a code pair had changed. This led to a loop comparing incorrect values, instead of comparing two consecutive values, it compared a value with one much earlier. In general this led to a loss of efficient, causing us to emit two or more entries when it was possible to emit a single range. However in the rare case when the comparison happened to compare two values that were consecutive, but shouldn't have been, this led to us writing an incorrect ToUnicode CMap. No differences expected.
* pdfwrite - Fix handling of Separation /All alternate space conversionKen Sharp2016-09-291-6/+54
| | | | | | | | | | | | | | Bug #697118 "Separation colorspace is not converted correctly by pdfwrite" The /All Separation space wasn't getting the components of the tint transform colour space correctly set. For rendering we never need to do that, and simply set the relevant component of the Separation (or DeviceN) space to be the tint value. This commit forces the CMS to run the tint transform when we need to create a new, different, alternate for the Separation space. No differences expected.
* Fix UTF16 surrogate pair detectionKen Sharp2016-09-291-1/+1
| | | | | | | Flagged by clang, the use of a short would fail to detect surrogate pairs, this shuold be an unsigned short. Bizarrely this worked as expected on Windows, I have no idea how.
* Remove (and re-implement) ConvertUTF.cKen Sharp2016-09-2911-863/+155
| | | | | | | | | | | | | | | | | | Bug #697122 " embedded ConvertUTF.c is buggy and licensed incompatibly with GPL/APGL" Its not clear that this code is incompatible with GPL, nor do we think any 'bugginess' in the code affects us, since we are using a comparatively small part of the included code. Nevertheless its possible to remove the code, and re-implement the small part we actually need, and that is done here. Also removed the DSCEncodingToUnicode option which was insanely difficult to use, and incorrectly documented. Yhis shows one difference, 692486_-_heap_overflow_in_pdf_to_ucs2.pdf now correctly throws an error, because the PDF file contains document information (Application) which has an invalid UTF16-BE sequence.
* Squash 2 warnings in the openjpeg code.Robin Watts2016-09-272-2/+2
|
* Import new OpenJPEG version.Robin Watts2016-09-2765-4242/+7478
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed version of openjpeg-update-20160927 This squashes the following commits: * Import new OpenJPEG version. From https://github.com/uclouvain/openjpeg Final commit is: commit 34dae137a9a8c04feaa9763ae7e09a86ecb10400 Author: Mathieu Malaterre <mathieu.malaterre@gmail.com> Date: Mon Sep 26 12:01:31 2016 +0200 OPENJPEG_NAMESPACE is configurable by user * Zap the OpenJPEG stuff we don't need * Add predefined openjpeg headers. * Import patches from Sumatra's tree. * Update Makefiles for new openjpeg * Update MSVC for new files * OpenJPEG allocation fixes. The old version of openjpeg allocates using malloc/free. The new version of openjpeg allocates via opj_malloc (and co). We can capture these and pass them down to our own allocators, but we cannot get openjpeg to pass us a gs_memory_t * to use. We therefore resort to using a static to hold 'the current gs_memory_t *' before we call openjpeg. To keep this threadsafe we add some private data to the gslibctx, which the openjpeg implementation can use to hold a lock. We add calls to both jpx decode implementations to init this private data (where the luratech implementation is null).
* Add pre-processor define for shared OpenJPEGChris Liddell2016-09-271-1/+1
|
* pxlcolor/pxlmono output devices: Make MediaPosition, ManualFeed, and ↵Till Kamppeter2016-09-231-27/+45
| | | | | | | | MediaType work In the pxlcolor and pxlmono output devices (for PCL-XL printers) the support for the attributes MediaPosition, ManualFeed, and MediaType got broken when ESP Ghostscript got merged into GPL Ghostscript (Bug
* Bug 697087: Apply PDF TTF rules when loading from diskChris Liddell2016-09-222-1/+32
| | | | | | | | When we substitute a TTF from disk for a (non-embedded) TTF in a PDF, apply the same rules (if possible) as when reading a TTF embedded in a PDF. So, selection of cmap table, font encoding, whether or not to draw the notdef etc. This applies *only* to fonts, *not* to CIDFonts.
* Remove Android logging code.Robin Watts2016-09-221-91/+0
| | | | | | | | | | | | Bow to protestations from my colleagues and move code into the caller. Probably nicer. If anyone ever needs the code they can grab it from git. Revert "Tweak android logging code logic." This reverts commit 4d08bfd98b5fcd7cd4c2bd5faf72ac9615354ee3. Revert "Add android logging code." This reverts commit 2c52876b77d348866941fb85f6d0349a51df0455.
* Tweak android logging code logic.Robin Watts2016-09-211-1/+1
| | | | | It seems we don't set NDEBUG in release builds for android. Revert to #ifdef DEBUG rather than #ifndef NDEBUG as a guard.
* Add android logging code.Robin Watts2016-09-211-0/+91
| | | | | Update stdio redirection so that stdout and stderr go to Android.log in DEBUG builds.