]> git.sesse.net Git - ffmpeg/commit
avcodec/fitsdec: Prevent division by 0 with huge data_max
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 15 Jul 2019 21:42:42 +0000 (23:42 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 26 Sep 2019 19:02:34 +0000 (21:02 +0200)
commitcfa193779103c97bbfc28273a0ab12c114b6786d
treeec11e048676103cccaf10a1675ee266d3ed88860
parent7dc0943d4aa014e616e2f2a4802cb3da829f9420
avcodec/fitsdec: Prevent division by 0 with huge data_max

Fixes: division by 0
Fixes: 15657/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FITS_fuzzer-5738154838982656
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