avcodec/atrac9dec: Check that the reused block has succeeded initilization
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Jun 2019 18:56:20 +0000 (20:56 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 29 Jun 2019 17:36:02 +0000 (19:36 +0200)
commit3d1903acfee865935b73957e1b4df5ae090c93f9
treec60d9896caaafe654b0e0692b53a269e0ccd96c2
parent6872daee87b9b7a8adcb3bd3b1defea6f2153d2b
avcodec/atrac9dec: Check that the reused block has succeeded initilization

Fixes: global-buffer-overflow
Fixes: 15247/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ATRAC9_fuzzer-5671602181636096

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 ac9af7e9a5befa8a554bacbcc59ab2f11203d85e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/atrac9dec.c