avcodec/apedec: Do not partially clear data array
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Aug 2019 06:26:40 +0000 (08:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Aug 2019 15:50:27 +0000 (17:50 +0200)
commit8e4b522c9146b9c14579ae7381fb1043b7423578
tree1fd49af870dd7d60a17ae8f7a394074574303ab4
parent208225bd782207aaf2b380522f96fd4fe4dc3441
avcodec/apedec: Do not partially clear data array

Fixes: Assertion failure and memleak
Fixes: 15709/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5182435093905408

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