avcodec/scpr: Check for min > max in decompress_p()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 4 Aug 2018 21:45:52 +0000 (23:45 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 Oct 2018 00:22:42 +0000 (02:22 +0200)
commit007da8396fedde3a3fb8c99cb7c7aaa46cdec1c9
treee6dc3480c9425b68bec17501138bc318a6e3ddd9
parente3cc5e81ab00f8b7a8ca230cd4cdba28443a39ef
avcodec/scpr: Check for min > max in decompress_p()

Fixes: Timeout
Fixes: 9342/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-4795990841229312

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