aboutsummaryrefslogtreecommitdiff
path: root/projects/mupdf
diff options
context:
space:
mode:
authorJonathan Rudenberg <jonathan@titanous.com>2018-01-18 21:11:16 -0500
committerOliver Chang <oliverchang@users.noreply.github.com>2018-01-19 13:11:16 +1100
commit984d3b0d920f498eb8314eb9109c83bfc6bd093e (patch)
tree9213a4491790bd30f7a042a7f43e07b836e73a0e /projects/mupdf
parent5ecb27726ddde102950aa90f7bd4ce621e94ef1e (diff)
downloadoss-fuzz-984d3b0d920f498eb8314eb9109c83bfc6bd093e.tar.gz
[mupdf] Fix fuzzer (#1091)
Without the document handlers registered, nothing gets fuzzed!
Diffstat (limited to 'projects/mupdf')
-rw-r--r--projects/mupdf/pdf_fuzzer.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/projects/mupdf/pdf_fuzzer.cc b/projects/mupdf/pdf_fuzzer.cc
index 3b1e1f667..f5040e529 100644
--- a/projects/mupdf/pdf_fuzzer.cc
+++ b/projects/mupdf/pdf_fuzzer.cc
@@ -22,6 +22,7 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
fz_context *ctx = fz_new_context(nullptr, nullptr, FZ_STORE_DEFAULT);
+ fz_register_document_handlers(ctx);
fz_stream *stream = fz_open_memory(ctx, data, size);
fz_matrix ctm;