mirror of https://github.com/google/oss-fuzz.git
[poppler] ignore locked documents (#1437)
This commit is contained in:
parent
6836cc64e0
commit
66793f36a9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue