avcodec/hevc: Fix integer overflow of entry_point_offset
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 5 Dec 2015 21:08:59 +0000 (22:08 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 14 Dec 2015 15:51:01 +0000 (16:51 +0100)
commit5af5396970b7cbaf22bd8754257f9bf9ffb36297
tree6af6107ede85bfdf366b3aedea8b79c8109bbf47
parentd17298b666bcbaba2931d98a292c866c29cc94da
avcodec/hevc: Fix integer overflow of entry_point_offset

Fixes out of array read
Fixes: d41d8cd98f00b204e9800998ecf8427e/signal_sigsegv_321165b_7641_077dfcd8cbc80b1c0b470c8554cd6ffb.bit

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

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