mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
avcodec/fits: Clear naxis
Fixes: Use of uninitialized memory
Fixes: 423673969/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FITS_DEC_fuzzer-5602250833854464
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 1687daa93c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -32,6 +32,8 @@ int avpriv_fits_header_init(FITSHeader *header, FITSHeaderState state)
|
||||
{
|
||||
header->state = state;
|
||||
header->naxis_index = 0;
|
||||
header->naxis = 0;
|
||||
memset(header->naxisn, 0, sizeof(header->naxisn));
|
||||
header->blank_found = 0;
|
||||
header->pcount = 0;
|
||||
header->gcount = 1;
|
||||
|
||||
Reference in New Issue
Block a user