avcodec/hevc_ps: Check return code from pps_range_extensions()
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 27 Nov 2014 01:31:46 +0000 (02:31 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Jan 2015 17:25:51 +0000 (18:25 +0100)
commit0c51b26729996bdf2acbf4fd34b74b4d14d92a33
tree6bb5907020c7cd934745589ca2095f7b8d37cba8
parente0822b147f25e56c65b48b7717eaa68f249346eb
avcodec/hevc_ps: Check return code from pps_range_extensions()

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

Conflicts:

libavcodec/hevc_ps.c
libavcodec/hevc_ps.c