summaryrefslogtreecommitdiffstats
path: root/libavcodec/fitsdec.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/fitsdec: Fail on 0 naxisnMichael Niedermayer2019-10-101-1/+1
| | | | | | | | | 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>
* avcodec/fitsdec: fix use of uninitialised valuesJames Almer2019-09-291-7/+7
| | | | | | | | | header.data_max and header.data_min are not necessarely set on all decoding scenarios. Fixes a Valgrind reported regression since cfa193779103c97bbfc28273a0ab12c114b6786d. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/fitsdec: Prevent division by 0 with huge data_maxMichael Niedermayer2019-09-261-1/+8
| | | | | | | | | 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>
* avcodec/fitsdec: Check data_min/maxMichael Niedermayer2019-06-301-0/+8
| | | | | | | | 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>
* avcodec/fitsdec: Fix division by 0 in size checkMichael Niedermayer2019-06-251-1/+1
| | | | | | | | 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>
* avcodec/fitsdec: write output to frame directlyParas Chadha2017-09-061-3/+2
| | | | | Signed-off-by: Paras Chadha <paraschadha18@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* Add FITS DecoderParas Chadha2017-08-301-0/+318
Signed-off-by: Paras Chadha <paraschadha18@gmail.com>
OpenPOWER on IntegriCloud