avcodec/fitsdec: Check data_min/max
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 12 Jun 2019 22:24:53 +0000 (00:24 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 30 Jun 2019 12:41:51 +0000 (14:41 +0200)
commitb5d6b509b1ce6c663c30d329d939ff13bfd4e280
tree67bd820cab6f1bfe196b5f6727370b9e479240a2
parentf3bfb0717982992959ac4ecd40f4d2ddcab25eb1
avcodec/fitsdec: Check data_min/max

Fixes: division by 0
Fixes: 15206/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FITS_fuzzer-5657260212092928

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 eb82d19f035f59edf0aee215f02baaea908875de)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/fitsdec.c