diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-04-01 15:49:15 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-04-01 16:44:56 +0100 |
commit | 1e6b1183733fed840e96fb1a43e1429e5b84b508 (patch) | |
tree | 830c899c40cd4a5bb6d6b172e7c04553c1a2605b /source/pdf/pdf-annot.c | |
parent | c9e994a8d56454080250ba444c6d9efae09f5cc7 (diff) | |
download | mupdf-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-annot.c')
0 files changed, 0 insertions, 0 deletions