diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-13 14:39:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-13 14:39:32 +0200 |
commit | f9db2fc84d3d061720ceb8e1b7425b48bdb1a119 (patch) | |
tree | cb54fecdc9fee4a69a1aceebbbf2f5eb1119a4e6 /libavcodec | |
parent | e6b6ae46951e242d7caf11acf5b1f10f109e1c96 (diff) | |
download | ffmpeg-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')
-rw-r--r-- | libavcodec/cdgraphics.c | 2 |
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; |