summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2009-04-30 21:01:52 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2009-04-30 21:01:52 +0200
commit0b561c8cbc64ba55e19ceb152624845617aa0cf0 (patch)
treeae820fc0869410aaa12ea820bddc7999753a1e9e
parentffc81cfb270ba71cf6a8cb0d6192a86beed0973f (diff)
downloadmupdf-0b561c8cbc64ba55e19ceb152624845617aa0cf0.tar.xz
Interpret empty objects as the null object.
-rw-r--r--mupdf/pdf_parse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mupdf/pdf_parse.c b/mupdf/pdf_parse.c
index 3f9ed545..02c4abbf 100644
--- a/mupdf/pdf_parse.c
+++ b/mupdf/pdf_parse.c
@@ -416,6 +416,9 @@ pdf_parseindobj(fz_obj **op, fz_stream *file, char *buf, int cap,
}
}
goto cleanup;
+ case PDF_TENDOBJ:
+ error = fz_newnull(&obj);
+ goto skip;
default:
goto cleanup;
}