summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-clean.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-04-01 15:49:15 +0100
committerRobin Watts <robin.watts@artifex.com>2015-04-01 16:44:56 +0100
commit1e6b1183733fed840e96fb1a43e1429e5b84b508 (patch)
tree830c899c40cd4a5bb6d6b172e7c04553c1a2605b /source/pdf/pdf-clean.c
parentc9e994a8d56454080250ba444c6d9efae09f5cc7 (diff)
downloadmupdf-1e6b1183733fed840e96fb1a43e1429e5b84b508.tar.xz
Bug 693719: Attempt #2. Broken trailer repair.
Calling pdf_is_dict causes the file to seek. This is a bad thing in a process that is running through the file. It's doubly bad, as the thing it seeks to read may not be there as it might not have been repaired yet. So, instead of just keeping the 'most recent root that is a dictionary', we change to keeping a list of the roots we have found while parsing the doc. At the end we then check for the most recent one that is a dictionary and use that.
Diffstat (limited to 'source/pdf/pdf-clean.c')
0 files changed, 0 insertions, 0 deletions