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>
Mon, 21 Jan 2019 06:53:26 +0000 (07:53 +0100)
commit321c418b8715e9b3142648561dcd1fd6494a9d62
tree58b1c9bfcd7d76db8f905dd9a63dd315cadea2bb
parentf5859d4a8ee22f73d75d6b498d459700b034dd55
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>
(cherry picked from commit 092cb17983b2660b4e050a05c739060f8e03d27a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/rasc.c