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>
Tue, 25 Jun 2019 11:30:09 +0000 (13:30 +0200)
commit07ffe94c172041cfb03109b9bb6b8bf577332bda
treee4278a9eb3b6f8901aa64a8c0fbd4524710b47e0
parentf8f5668df590d853429586e1f95cbd9cee38920e
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>
libavcodec/fitsdec.c