aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-23 18:09:58 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-24 23:20:30 +0100
commitbb9f55163f17145d5b220b38e23c7d55824ec7c5 (patch)
tree6b1368a4bed26228c6f077b2bbbf07835063847d /libavcodec
parent51fed95dde7abe838cb55188e28f410fded009c7 (diff)
downloadffmpeg-bb9f55163f17145d5b220b38e23c7d55824ec7c5.tar.gz
avcodec/eatgv: use av_mallocz() for frame_buffer
Fixes use of uninitialized memory Fixes: msan_uninit-mem_7fbf6159587b_2571_ORIGIN.TGV Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/eatgv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/eatgv.c b/libavcodec/eatgv.c
index 952ebb3c34..f204a1344c 100644
--- a/libavcodec/eatgv.c
+++ b/libavcodec/eatgv.c
@@ -311,7 +311,7 @@ static int tgv_decode_frame(AVCodecContext *avctx,
frame->pict_type = AV_PICTURE_TYPE_I;
if (!s->frame_buffer &&
- !(s->frame_buffer = av_malloc(s->width * s->height)))
+ !(s->frame_buffer = av_mallocz(s->width * s->height)))
return AVERROR(ENOMEM);
if (unpack(buf, buf_end, s->frame_buffer, s->avctx->width, s->avctx->height) < 0) {