Commit 58ac1d4f authored by Tyson Smith's avatar Tyson Smith Committed by Tristan Matthews

speexdec_fuzzer: impose upper limit of 4096 on input size

Signed-off-by: Tristan Matthews's avatarTristan Matthews <tmatth@videolan.org>
parent 11477122
......@@ -191,6 +191,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *fuzz_data, size_t fuzz_size
enh_enabled = 1;
/*Check fuzz_data meets size requirements*/
if (fuzz_size > 4096)
return 0;
/*Init Ogg data struct*/
ogg_sync_init(&oy);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment