mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/wnv1: clear padding area of rbuf
Fixes use of uninitialized memory Fixes: msan_uninit-mem_7faa48586020_2145_MAILTEST.AVI Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ec73bd1fe8
commit
14bec7dcf8
@ -78,6 +78,7 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
av_log(avctx, AV_LOG_ERROR, "Cannot allocate temporary buffer\n");
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
memset(rbuf + buf_size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
|
||||
if ((ret = ff_get_buffer(avctx, p, 0)) < 0) {
|
||||
av_free(rbuf);
|
||||
|
Loading…
Reference in New Issue
Block a user