| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
The minimal PS-like interpreter in pdfi allows the operand stand to be extended,
but the code was missing handling of the memory allocation failing for the
extended stack.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This file was originally copied from the XPS interpreter verbatim, and
included a load of .h files which were then included needlessly in
all of the C files.
This removes almost all the .h files from ghostpdf.h; we keep gserrors.h
since so many C files do actually use it to report errors, and
gxgstate.h which is used in ghostpdf.h
The various C and H files have been updated to pull in the include
files they actually need.
|
|
This is a commit of the pdfi branch to master, eliminating
the traditional merge step.
The full history of the pdfi branch can be seen in the repo,
and that branch is effectively frozen from this point onwards.
This commit actually differs from pdfi in a small number of
whitespace changes (trailing spaces etc).
|