mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avcodec/jpeg2000dec: Clear header derived variables
Fixes: NULL pointer dereference Found-by: Oguzhan Akkaya with AFL++ fuzzing (May 2026) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
michaelni
parent
0834dbed1c
commit
6631bbc5d4
@@ -2451,8 +2451,14 @@ static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s)
|
||||
memset(s->qntsty, 0, sizeof(s->qntsty));
|
||||
memset(s->properties, 0, sizeof(s->properties));
|
||||
memset(&s->poc , 0, sizeof(s->poc));
|
||||
memset(s->roi_shift, 0, sizeof(s->roi_shift));
|
||||
s->numXtiles = s->numYtiles = 0;
|
||||
s->ncomponents = 0;
|
||||
s->has_ppm = 0;
|
||||
s->isHT = 0;
|
||||
s->precision = 0;
|
||||
s->colour_space = 0;
|
||||
s->pal8 = 0;
|
||||
}
|
||||
|
||||
static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s)
|
||||
|
||||
Reference in New Issue
Block a user