[mupdf] Fix fuzzer (#1091)

Without the document handlers registered, nothing gets fuzzed!
This commit is contained in:
Jonathan Rudenberg 2018-01-18 21:11:16 -05:00 committed by Oliver Chang
parent 5ecb27726d
commit 984d3b0d92
1 changed files with 1 additions and 0 deletions

View File

@ -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;