avcodec/ffwavesynth: Check if there is enough extradata before allocation
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 14 Jul 2019 22:35:49 +0000 (00:35 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 Jul 2019 17:05:02 +0000 (19:05 +0200)
commit65bac4a7825e1f2bbf4112569ffa363cc1fdbce5
treec9f9601cfbdeb4dfd5bed23652ce3022b0b54197
parentf4605770af712dd9d7b0136fe298f8aa52101011
avcodec/ffwavesynth: Check if there is enough extradata before allocation

Fixes: OOM
Fixes: 15750/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFWAVESYNTH_fuzzer-5702090367696896

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ffwavesynth.c