avcodec/fitsdec: Fix division by 0 in size check
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 13 Jun 2019 14:08:03 +0000 (16:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commitc0e3f54ec061629d79549ee4855c8b4f844d3ad1
tree17c698d8b8e567f5d399704cd783cf3c69c539b0
parent26605408f1aaf212d966277ece9dc6ce73ce5a1d
avcodec/fitsdec: Fix division by 0 in size check

Fixes: division by zero
Fixes: 15210/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FITS_fuzzer-5746033243455488

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