diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-02-27 14:39:21 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-02-27 17:20:32 +0000 |
commit | 8ff8784def2fbf49a303a86259919ff143050c5f (patch) | |
tree | 0bef30f78a42529ff56c99172da0cb2b3b3c25d6 /source/pdf/pdf-metrics.c | |
parent | 060ae5d3483fb4f060ecbbf2d706c1159b760114 (diff) | |
download | mupdf-8ff8784def2fbf49a303a86259919ff143050c5f.tar.xz |
Bug 695853: Fix pdf clean operation with invalid refs in input file.
MuPDF (and other PDF readers) treat invalid references as 'null'
objects. For instance, in the supplied file, object 239 is supposedly
free, but a reference is made to it.
When cleaning (or linearising) a file, we renumber objects; such
illegal refs then end up pointing somewhere else.
The workaround here is simply to spot the invalid refs during the
mark phase, and to set the referencing to null.
Diffstat (limited to 'source/pdf/pdf-metrics.c')
0 files changed, 0 insertions, 0 deletions