avcodec/diracdec: Check that slices are fewer than pixels
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Jul 2019 23:49:47 +0000 (01:49 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 13 Aug 2019 20:14:03 +0000 (22:14 +0200)
commitfbbc8ba67f19d55380b1bc8b5f057328c266d747
tree08fca2fbcc72621ba2eefe44757638c5b6e5467f
parent1e2e47e348111636ff1b06709985294fe0dff1af
avcodec/diracdec: Check that slices are fewer than pixels

Fixes: Timeout (197sec ->144ms)
Fixes: 15034/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5733549405110272

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c