mirror of https://github.com/google/oss-fuzz.git
Check for non-null baseStream (#7476)
This commit is contained in:
parent
c13fa231dc
commit
b4dcddf1ee
|
@ -120,10 +120,12 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
|||
|
||||
Object globals;
|
||||
BaseStream *base_str = doc.getBaseStream();
|
||||
JBIG2Stream *str = new JBIG2Stream(base_str, &globals);
|
||||
str->reset();
|
||||
if (base_str) {
|
||||
JBIG2Stream *str = new JBIG2Stream(base_str, &globals);
|
||||
str->reset();
|
||||
delete str;
|
||||
}
|
||||
globals.free();
|
||||
delete str;
|
||||
}
|
||||
} catch (...) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue