avcodec/hevc: allocate entries unconditionally
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 27 Nov 2015 22:33:03 +0000 (23:33 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 5 Dec 2015 22:48:52 +0000 (23:48 +0100)
commitd8c0546ecdb0514cbc44a4ec656563710dd8b25a
treeb8bd04405aef706904787ed2a1814ace49363e16
parentf9d6d02fd1d6ea4e98d7f115232d797e68096fb4
avcodec/hevc: allocate entries unconditionally

Fixes out of array access
Fixes: 08664a2a7921ef48172f26495c7455be/asan_heap-oob_23036c6_3301_523388ef84285a0270caf67a43247b59.bit

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Conflicts:

libavcodec/hevc.c
libavcodec/hevc.c