avcodec/rasc: Check that the number of moves is less than or equal the number of...
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 14 Dec 2018 23:10:17 +0000 (00:10 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Dec 2018 08:49:07 +0000 (09:49 +0100)
commit092cb17983b2660b4e050a05c739060f8e03d27a
tree259ffc9709a62cdb6b5bcdae03f696bff5ee07c6
parentb11b3d2585cda24e60160070f10f5d70a8c42fbf
avcodec/rasc: Check that the number of moves is less than or equal the number of pixels

Fixes: OOM
Fixes: 10307/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RASC_fuzzer-5393974559244288

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>
libavcodec/rasc.c