avcodec/utils: Check that the data is complete in avpriv_bprint_to_extradata()
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 25 Nov 2014 13:45:30 +0000 (14:45 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Jan 2015 17:25:50 +0000 (18:25 +0100)
commit494d3d14dbff87dbdc1b79154deef96b96246d87
tree37030a330a652d68f9c8ae31db3a34376e71b563
parent6c63eb59099e7096aaaaaad3c15a1dab62afc87b
avcodec/utils: Check that the data is complete in avpriv_bprint_to_extradata()

Fixes out of array read
Fixes: asan_heap-oob_4d2250_814_cov_2745172097_JACOsub_capability_tester.jss
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 3d5d95db3f5d8e2093e9e19d0c46e86f54ed2a5d)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utils.c