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 17:34:33 +0000 (19:34 +0200)
commit25aa7ddd315081a0c05b9b5715f4bbdb7d14c3ec
treeb514bc019c8827bec83a2885cbd4df0647290d01
parent99ecd0cfc9261206b89dcb495ca44243adfc9f8e
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>
(cherry picked from commit 8e4b522c9146b9c14579ae7381fb1043b7423578)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/apedec.c