summaryrefslogtreecommitdiff
path: root/source/pdf/js/pdf-jsimp-v8.cpp
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-02-27 14:39:21 +0000
committerRobin Watts <robin.watts@artifex.com>2015-02-27 17:20:32 +0000
commit8ff8784def2fbf49a303a86259919ff143050c5f (patch)
tree0bef30f78a42529ff56c99172da0cb2b3b3c25d6 /source/pdf/js/pdf-jsimp-v8.cpp
parent060ae5d3483fb4f060ecbbf2d706c1159b760114 (diff)
downloadmupdf-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/js/pdf-jsimp-v8.cpp')
0 files changed, 0 insertions, 0 deletions