avcodec/diracdec: Check for hpel_base allocation failure
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 18 Jul 2015 15:55:19 +0000 (17:55 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 18 Jul 2015 16:05:41 +0000 (18:05 +0200)
commit1c5b712c0a643a039d6f34269b4102de313a050a
treef0cb40c61f7dd4222a56b6c64039b652669dbcd2
parenta194298954e98d915790ef4f7f277f50762be1ad
avcodec/diracdec: Check for hpel_base allocation failure

Fixes null pointer dereference
Fixes: signal_sigsegv_b02a96_280_RL_420p_ffdirac.drc with memlimit of 67108864

Found-by: Samuel GroƟ, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c