]> git.sesse.net Git - ffmpeg/commit
avcodec/mobiclip: Check that Motion vectors are within the input frame
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 2 Oct 2020 20:48:12 +0000 (22:48 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Oct 2020 20:53:56 +0000 (22:53 +0200)
commit92233a63444001477acb70f2afa43a05f10b5fd5
treef96d1180ca35ea44b886e952c8bf7a7e1c3e1f0a
parentb6b640c5448f4a53e49caf93ccd665346d7598ef
avcodec/mobiclip: Check that Motion vectors are within the input frame

The MV checks did not consider the width and height of the block, also they
had some off by 1 errors. This resulted in undefined behavior and crashes.
This commit instead errors out on these

Fixes: out of array read
Fixes: 26080/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MOBICLIP_fuzzer-5758146355920896
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mobiclip.c