summaryrefslogtreecommitdiff
path: root/libavcodec/vqavideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-01 15:29:20 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-01 15:35:34 +0100
commite6364ea26df9b39023f6986200dc1731b7bdf2d3 (patch)
treec43909702f3ef62a2a59562d275aef4a9047aa91 /libavcodec/vqavideo.c
parent0b1cfc4f28d81a8a49fdd5589b2eed06477abd61 (diff)
avcodec/vqavideo: use av_mallocz() for decode_buffer()
Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f62eaba897d_595_4D6EFA92.VQA Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vqavideo.c')
-rw-r--r--libavcodec/vqavideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c
index 913385520a..c34849d577 100644
--- a/libavcodec/vqavideo.c
+++ b/libavcodec/vqavideo.c
@@ -179,7 +179,7 @@ static av_cold int vqa_decode_init(AVCodecContext *avctx)
/* allocate decode buffer */
s->decode_buffer_size = (s->width / s->vector_width) *
(s->height / s->vector_height) * 2;
- s->decode_buffer = av_malloc(s->decode_buffer_size);
+ s->decode_buffer = av_mallocz(s->decode_buffer_size);
if (!s->decode_buffer)
goto fail;