mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
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
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user