avcodec/hevc: Check max ctb addresses for WPP
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 28 Nov 2015 12:42:05 +0000 (13:42 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 20 Dec 2015 09:59:28 +0000 (10:59 +0100)
commit3e8d9eade6557aa98813e4c2ae7dc9bc33d0727e
treeda65b5d9a58e021cba17c24ecc9b0c62c66069c0
parent63c50350b6e5038e3acf95a56fe58d43e3db5422
avcodec/hevc: Check max ctb addresses for WPP

Fixes out of array read
Fixes: 2f95ddd996db8a6281d2e18c184595a7/asan_heap-oob_192fe91_3330_58e4441181e30a66c19f743dcb392347.bit

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

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