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, 6 Dec 2015 11:40:51 +0000 (12:40 +0100)
commit70720f3e4d9e50e2d0f6d5aed8c9b576e60f802c
tree6539ccd8992b2073d086a1d8576e19f9af765e13
parent9ee155c745b528122a5709b52d4a25fff7aea698
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>
Conflicts:

libavcodec/hevc.c

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