diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2023-04-21 11:59:37 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2023-04-21 13:48:10 +0100 |
commit | b0739b945394ec81a5420cf02e951fae26923dce (patch) | |
tree | e61ed78fea8a01c11f67c836b0234a16fc8f1922 /pdf/pdf_font.c | |
parent | 1b160b94329d28f5c0b7bc682abd6335175bd50e (diff) | |
download | ghostpdl-b0739b945394ec81a5420cf02e951fae26923dce.tar.gz |
Avoid in use names being garbage collected
To maintain interoperability with the Postscript interpreter, pdfi shares
the Postscript name table (when it's built into gs, rather than standalone).
On the basis that the name table is cleaned up only with global VM, and that
global VM is only gc'ed at the end of job (we thought!), we thought adding
names to the table was sufficient.
Turns out, there are circumstances under which global VM (and thus the name
table) do get gc'ed before the end of job, and in that case, names pdfi still
relied upon could disappear.
To avoid that, add the names (as key and value) to a Postscript dictionary,
known to the garbager, at the same time as we add them to the name table.
Came up cluster testing a fix for Bug 706595, with file:
tests_private/comparefiles/Bug691740.pdf
Diffstat (limited to 'pdf/pdf_font.c')
0 files changed, 0 insertions, 0 deletions