summaryrefslogtreecommitdiff
path: root/libavcodec/cdgraphics.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-13 14:39:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-13 14:39:32 +0200
commitf9db2fc84d3d061720ceb8e1b7425b48bdb1a119 (patch)
treecb54fecdc9fee4a69a1aceebbbf2f5eb1119a4e6 /libavcodec/cdgraphics.c
parente6b6ae46951e242d7caf11acf5b1f10f109e1c96 (diff)
downloadffmpeg-f9db2fc84d3d061720ceb8e1b7425b48bdb1a119.tar.gz
cdgraphics: initialize buffer
Prevent use of uninitialized memory Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/cdgraphics.c')
-rw-r--r--libavcodec/cdgraphics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cdgraphics.c b/libavcodec/cdgraphics.c
index ed2edfe450..d29231758a 100644
--- a/libavcodec/cdgraphics.c
+++ b/libavcodec/cdgraphics.c
@@ -265,7 +265,7 @@ static int cdg_decode_frame(AVCodecContext *avctx,
int buf_size = avpkt->size;
int ret;
uint8_t command, inst;
- uint8_t cdg_data[CDG_DATA_SIZE];
+ uint8_t cdg_data[CDG_DATA_SIZE] = {0};
AVFrame *frame = data;
CDGraphicsContext *cc = avctx->priv_data;