1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-24 02:09:03 +03:00

avcodec/mvcdec: zero-initialize color array

Fixes MSAN use-of-uninitialized-value.

Signed-off-by: Marvin Scholz <epirat07@gmail.com>
(cherry picked from commit 3a5eb948e7)
This commit is contained in:
Marvin Scholz
2026-10-21 00:32:03 +00:00
committed by ffmpeg-devel
parent ec5c5245d6
commit 3c682777fd

View File

@@ -138,7 +138,7 @@ static int decode_mvc2(AVCodecContext *avctx, GetByteContext *gb,
int linesize, int vflip)
{
uint8_t *dst;
uint32_t color[128], v[8];
uint32_t color[128] = {0}, v[8];
int w, h, nb_colors, i, x, y, p0, p1, mask;
if (bytestream2_get_bytes_left(gb) < 6)