avcodec/apedec: Fix integer overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Jul 2017 12:57:20 +0000 (14:57 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Jul 2017 15:02:30 +0000 (17:02 +0200)
commit5bb861d45b86803ec39295cfc04889d2a7138361
tree349efbfad4ea24852301e97896ccd870f92c66a4
parentfc24783c6d196ae6303f27dea98b89ceadbc2bfe
avcodec/apedec: Fix integer overflow

Fixes: out of array access
Fixes: PoC.ape and others

Found-by: Bingchang, Liu@VARAS of IIE
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ba4beaf6149f7241c8bd85fe853318c2f6837ad0)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/apedec.c