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