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>
This commit is contained in:
parent
16d663d371
commit
1687daa93c
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue