| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
| |
As well as the (long non-functional/non-useful) Windows "xfont" code.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
default.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
The scheduler field (which is relocatable) was not being initialisedm causing a
segfault in teh garbage collector
|
|
|
|
| |
and param types
|
| |
|
| |
|
|
|
|
| |
when copying a device
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Once we've opened our input file from the command line, enforce the SAFER
rules.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
It seems we don't set NDEBUG in release builds for android.
Revert to #ifdef DEBUG rather than #ifndef NDEBUG as a guard.
|
|
|
|
|
| |
Update stdio redirection so that stdout and stderr go to
Android.log in DEBUG builds.
|