avcodec/rv10: Fix integer overflow in aspect ratio compare
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 28 Jun 2019 17:20:43 +0000 (19:20 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jul 2019 09:51:09 +0000 (11:51 +0200)
commit16f8e50f86ce6c9944f31045dae9639baaadf444
tree283435577c69a60a50f99f5cd6002e53e6ce91c9
parent4db3ec5e7b1ab08abbe08dbcb7c9de37e8b3dfe4
avcodec/rv10: Fix integer overflow in aspect ratio compare

Fixes: signed integer overflow: 2040 * 1187872 cannot be represented in type 'int'
Fixes: 15368/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RV20_fuzzer-5681657136283648

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 14fcf42958608223a0be6558fb6e323419c9fc27)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/rv10.c