From 66793f36a9b8fd4cc8568c7d83e5c7896a483a3f Mon Sep 17 00:00:00 2001 From: Jonathan Rudenberg Date: Mon, 21 May 2018 20:56:42 -0400 Subject: [PATCH] [poppler] ignore locked documents (#1437) --- projects/poppler/pdf_fuzzer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/poppler/pdf_fuzzer.cc b/projects/poppler/pdf_fuzzer.cc index 93ba5d144..d9cea20f9 100644 --- a/projects/poppler/pdf_fuzzer.cc +++ b/projects/poppler/pdf_fuzzer.cc @@ -29,7 +29,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { poppler::set_debug_error_function(nop_func, nullptr); poppler::document *doc = poppler::document::load_from_raw_data((const char *)data, size); - if (!doc) { + if (!doc || doc->is_locked()) { return 0; }