summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/pdf/pdf-repair.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/pdf/pdf-repair.c b/source/pdf/pdf-repair.c
index 0f20d3f2..6e62bf00 100644
--- a/source/pdf/pdf-repair.c
+++ b/source/pdf/pdf-repair.c
@@ -458,6 +458,9 @@ pdf_repair_xref(fz_context *ctx, pdf_document *doc)
}
+ if (listlen == 0)
+ fz_throw(ctx, FZ_ERROR_GENERIC, "no objects found");
+
/* make xref reasonable */
/*