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>
Sat, 5 Dec 2015 22:48:52 +0000 (23:48 +0100)
commitc6b81e252e7a808d506adf0ee8520a7970426ff7
tree6fb74de337703662a5c5a8787cf198ea0d0ee2ec
parentd3de02d9d44256dd2b5c5239bdb2f3830ba8da44
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