avcodec/utils: Clear dimensions in ff_get_buffer() on failure
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 28 Nov 2015 19:08:46 +0000 (20:08 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 28 Nov 2015 19:10:51 +0000 (20:10 +0100)
commitabee0a1c60612e8638640a8a3738fffb65e16dbf
tree4c2e83609dff92279e4ab11fff5bb1e03808c8e3
parent4f03bebc79f76df3a3e5bb9e1bc32baabfb7797c
avcodec/utils: Clear dimensions in ff_get_buffer() on failure

Fixes out of array access
Fixes: 482d8f2fd17c9f532b586458a33f267c/asan_heap-oob_4a52b6_7417_1d08d477736d66cdadd833d146bb8bae.mov

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