avcodec/mv30: Do not allow MVs outside the allocated image
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 20 May 2020 19:52:23 +0000 (21:52 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 4 Jun 2020 21:58:49 +0000 (23:58 +0200)
commite73a25168028fea7ca8a837519c6643875c09cab
treeed6f3f8e16398207b05fd33557f0d3484b2f62ab
parentc42ed06695848617350a94543823e850f190b3ab
avcodec/mv30: Do not allow MVs outside the allocated image

Fixes: out of array read
Fixes: 21804/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MV30_fuzzer-5673678898724864

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