summaryrefslogtreecommitdiff
path: root/fitz/doc_interactive.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-03-05 00:02:02 +0000
committerRobin Watts <robin.watts@artifex.com>2013-03-05 10:42:20 +0000
commit1b4b5fdfa6b74827631d42efd2a61226125f036b (patch)
treea2ab9f8d03674885c130b91621fd619713d2b935 /fitz/doc_interactive.c
parent4c45666cb302a7eab95d362989c0e7e087d8383f (diff)
downloadmupdf-1b4b5fdfa6b74827631d42efd2a61226125f036b.tar.xz
Fix warnings seen on cleaning a document.
Seen with the test file from bu 693677. When we read a file in, we read the trailer, and the encrypt object before we start to decrypt other objects. These objects do not make it into the xref table though. When we write a file out, we run through the file reading in objects prior to writing them out; when we read in the trailer and the encrypt object we therefore try to decrypt them, giving errors. To avoid these errors, put the trailer and the encrypt object into the xref table when they are first read. This solves all but 1 problem when cleaning this file with "-dif" (as the signature object contains a digest block of data that is unencrypted). This solves all but 3 problems when cleaning this file with "-difggg"; the signature object, and one orphan copy of the crypt dictionary that is reported twice.
Diffstat (limited to 'fitz/doc_interactive.c')
0 files changed, 0 insertions, 0 deletions