hevc: Bound check slice_qp
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 12 Jan 2014 00:14:12 +0000 (01:14 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 13 Jan 2014 04:04:13 +0000 (05:04 +0100)
commitaead772b5814142b0e530804486ff7970ecd9eef
treea2c66c4e1d81241ea2e965cf3feeb353564e495c
parent48a5b155433ed7af20fb0a5c20ca131958727727
hevc: Bound check slice_qp

The T-REC-H.265-2013044 page 79 states they have to be into the range
[-s->sps->qp_bd_offset, 51].

Fixes: asan_stack-oob_eae8e3_9522_WP_MAIN10_B_Toshiba_3.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/hevc.c