[poppler] ensure doc doesn't leak when locked (#1438)

This commit is contained in:
Jonathan Rudenberg 2018-05-22 13:48:10 -04:00 committed by Abhishek Arya
parent 66793f36a9
commit c2af307e74
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
poppler::document *doc = poppler::document::load_from_raw_data((const char *)data, size);
if (!doc || doc->is_locked()) {
delete doc;
return 0;
}