avcodec/utils: Clear dimensions in ff_get_buffer() on failure
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 28 Nov 2015 18:08:46 +0000 (19:08 +0100)
committerMike Gabriel <sunweaver@debian.org>
Thu, 20 Dec 2018 21:56:40 +0000 (21:56 +0000)
commitd3d8f021a934738d238d60c4a12222ea70a2f942
tree78a4145ee5e49aa618bc0ff4ebd9e1ca5a55441c
parent745736ea0fdf9f62a97ccdd8130dfe559e5d3b85
avcodec/utils: Clear dimensions in ff_get_buffer() on failure

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>
[sunweaver] - manually adapted for Debian jessie's libav version which lacks the get_internal_buffer() symbol.

Gbp-Pq: Name CVE-2015-8663.patch
libavcodec/utils.c