diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-12-23 11:54:49 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-12-24 10:07:25 +0000 |
commit | 6b08b13fc4e95f9f0446a7199f1d9b5d9348d2f9 (patch) | |
tree | 01968e4ad4fa34c96d831581ec7f0920ff12a82e /source/fitz | |
parent | 3328de5f6432ee25525dca59d4e60d2603477b81 (diff) | |
download | mupdf-6b08b13fc4e95f9f0446a7199f1d9b5d9348d2f9.tar.xz |
Bug 694810: Implement late file repair for PDFs.
Currently, if we spot a bad xref as we are reading a PDF in, we can
repair that PDF by doing a long exhaustive read of the file. This
reconstructs the information that was in the xref, and the file can
be opened (and later saved) as normal.
If we hit an object that is not in the expected place however, we
cannot trigger a repair at that point - so xrefs with duff offsets
in (within the bounds of the file) will never be repaired.
This commit solves that by triggering a repair (just once) whenever
we fail to parse an object in the expected place.
Diffstat (limited to 'source/fitz')
0 files changed, 0 insertions, 0 deletions