avcodec/apedec: Check length in long_filter_high_3800()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 2 Dec 2015 20:16:27 +0000 (21:16 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 20 Dec 2015 09:59:27 +0000 (10:59 +0100)
commit0350f373f7f0eebc2f49a5144511ba4a7b718c1b
tree4fee1fc176129fd7341a63afafac89648570c940
parent4d8d2f1991cd7514a3ccd6e4ad5e62bb8f1fba57
avcodec/apedec: Check length in long_filter_high_3800()

Fixes out of array read
Fixes: 0a7ff0c1d93da9cef28a315ec91b692a/asan_heap-oob_4a52e5_3604_9c56dbb20e308f4faeef7b35f688521a.ape

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit cd7524fdd13dc8d0cf22e2cfd8300a245542b13a)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/apedec.c