forked from FFmpeg/FFmpeg
cdgraphics: initialize buffer
Prevent use of uninitialized memory Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e6b6ae4695
commit
f9db2fc84d
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ static int cdg_decode_frame(AVCodecContext *avctx,
|
||||||
int buf_size = avpkt->size;
|
int buf_size = avpkt->size;
|
||||||
int ret;
|
int ret;
|
||||||
uint8_t command, inst;
|
uint8_t command, inst;
|
||||||
uint8_t cdg_data[CDG_DATA_SIZE];
|
uint8_t cdg_data[CDG_DATA_SIZE] = {0};
|
||||||
AVFrame *frame = data;
|
AVFrame *frame = data;
|
||||||
CDGraphicsContext *cc = avctx->priv_data;
|
CDGraphicsContext *cc = avctx->priv_data;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue