avcodec/aacps: Fix undefined behavior
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 5 May 2017 11:16:07 +0000 (13:16 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 May 2017 01:41:34 +0000 (03:41 +0200)
commitaa941e9aa9d5f5cea07f7d93d6f2c37021c72d3d
tree5a533c0b0886cc6b87a35c86204cf466bdac7885
parent53567e573bde156021cb375dba5c76d11a5e2d19
avcodec/aacps: Fix undefined behavior

Fixes: 1337/clusterfuzz-testcase-minimized-5212314171080704

Fixes the existence of a potentially invalid pointer intermediate

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 527f89e05922e840083ac6d49eeb838b1e350dd4)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacps.c