avcodec/sanm: Check extradata_size before allocations
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 15 Jul 2019 21:26:05 +0000 (23:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Aug 2019 16:42:51 +0000 (18:42 +0200)
commit172a43ce36e671fdab63afe1c06876bba91445b3
treeccfe7b8901620f843e1377f139081289d4ee669c
parent9051092e73666e95986eb2d596cc0867aea05c3d
avcodec/sanm: Check extradata_size before allocations

Fixes: Leaks
Fixes: 15349/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SANM_fuzzer-5102530557640704

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/sanm.c