avcodec/hevc: Check entry_point_offsets
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 27 Nov 2015 17:30:05 +0000 (18:30 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 20 Dec 2015 09:59:27 +0000 (10:59 +0100)
commit6157938408a020d973b9e80c11d3e3e00899bea7
tree8c81a1b55cf282c14cf577566c91afd8566a17e5
parent1f6aea2cc4e379346d0b5b67e9ce775e12b39def
avcodec/hevc: Check entry_point_offsets

Fixes out of array read
Fixes: 007c4a36608ebdf27ee260ad60a81184/asan_heap-oob_32076b4_2243_116b1cb29d91cc4974d6680e3d10bd91.bit

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

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