mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avformat/jpegxl_anim_dec: ensure input padding is zeroed
Fixes use of uninitialized value, reported by MSAN. Found by OSS-Fuzz. Signed-off-by: Kacper Michajłow <kasper93@gmail.com> Fixes: 70837/clusterfuzz-testcase-minimized-ffmpeg_dem_JPEGXL_ANIM_fuzzer-5089407768526848 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
3978e81809
commit
2b5f000d3f
@ -124,6 +124,8 @@ static int jpegxl_anim_read_header(AVFormatContext *s)
|
||||
}
|
||||
}
|
||||
|
||||
memset(head + headsize, 0, AV_INPUT_BUFFER_PADDING_SIZE);
|
||||
|
||||
/* offset in bits of the animation header */
|
||||
ret = ff_jpegxl_parse_codestream_header(head, headsize, &meta, 0);
|
||||
if (ret < 0 || meta.animation_offset <= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user