avcodec/mpeg4videodec: Improve the overflow checks in mpeg4_decode_sprite_trajectory()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 2 Mar 2017 02:02:07 +0000 (03:02 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 4 Mar 2017 02:05:15 +0000 (03:05 +0100)
commiteb41956636fc264fe2077b78ef00591d83bbbace
treea1640c7c3de964d000df73f42e2529c13fbf1c65
parent2ce4f28431623cdde4aa496fd10430f6c7bdef63
avcodec/mpeg4videodec: Improve the overflow checks in mpeg4_decode_sprite_trajectory()

Also clear the state on errors

Fixes integer overflows in 701/clusterfuzz-testcase-6594719951880192

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