summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-annot-edit.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-10-01 18:05:46 +0100
committerRobin Watts <robin.watts@artifex.com>2015-10-02 15:53:19 +0100
commit1acaaf2b40614401378aa697de47093be9f390fe (patch)
tree884597d2a9345e93aa55f19aba40b9d2f40f8100 /source/pdf/pdf-annot-edit.c
parent1cf9a6c5092adce610f3e6b33219e09b4383249f (diff)
downloadmupdf-1acaaf2b40614401378aa697de47093be9f390fe.tar.xz
Bug 696129: Be more forgiving of broken files.
The PDF spec says that old format xrefs should start with: xref\n<start> <len> The example file in question has: xref <start> <len> which confuses our parsing code. Update the parse code to avoid using fz_read_line, and to instead work on a char level. Also, downgrade the error given when the first object is not free to be a warning. Now we do 'just in time' repair, we are probably better able to cope.
Diffstat (limited to 'source/pdf/pdf-annot-edit.c')
0 files changed, 0 insertions, 0 deletions