avcodec/aacdec_template: Do not decode 2nd PCE if it will lead to failure
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 10 Apr 2017 00:46:25 +0000 (02:46 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 May 2017 17:32:33 +0000 (19:32 +0200)
commita5e0dbf530d447f36099aed575b34e9258c5d75a
tree98b2ce378ecd3355021eedf4cb19be2cc0c415b7
parenta38e9797cb4123d13ba871d166a737786ba04a9b
avcodec/aacdec_template: Do not decode 2nd PCE if it will lead to failure

Fixes: out of array read
Fixes: 1072/clusterfuzz-testcase-6456688074817536
Fixes: 1398/clusterfuzz-testcase-minimized-4576913622302720

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