avcodec/fitsdec: Fail on 0 naxisn
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 30 Sep 2019 06:50:41 +0000 (08:50 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 10 Oct 2019 12:34:19 +0000 (14:34 +0200)
commit4a3303d52096337dc109fbd523ecb4b46cddace1
treeee9ec2245b87c2506b943520d835644f2932abc8
parenta76a516e761ae950d2f5ccd4469ea8d3416718f2
avcodec/fitsdec: Fail on 0 naxisn

Fixes: Timeout (100+ sec -> 23ms)
Fixes: 17769/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FITS_fuzzer-5678314672357376

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/fitsdec.c