[poppler] ignore locked documents (#1437)

This commit is contained in:
Jonathan Rudenberg 2018-05-21 20:56:42 -04:00 committed by Abhishek Arya
parent 6836cc64e0
commit 66793f36a9
1 changed files with 1 additions and 1 deletions

View File

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