mirror of https://github.com/google/oss-fuzz.git
[poppler] ensure doc doesn't leak when locked (#1438)
This commit is contained in:
parent
66793f36a9
commit
c2af307e74
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue