diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-06-13 19:45:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-12-02 19:41:48 +0100 |
commit | 5a7a2180f8d5a013c73b6c590062dfa7a5aeedeb (patch) | |
tree | f19f8f56721ff2d93cacb28831bc278d91b2a78c | |
parent | d3a1a59c22a196038bb4a4ed06e0e9ff98325a7f (diff) | |
download | ffmpeg-5a7a2180f8d5a013c73b6c590062dfa7a5aeedeb.tar.gz |
avcodec/truemotion2: Fix integer overflow in last loop in tm2_update_block()
Fixes: signed integer overflow: -1727985666 - 538976288 cannot be represented in type 'int'
Fixes: 15031/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5100228035739648
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3aecd0170413c7e56f19de4e34d093a2c4027c2a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/truemotion2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/truemotion2.c b/libavcodec/truemotion2.c index 90106ce238..ab70ab19aa 100644 --- a/libavcodec/truemotion2.c +++ b/libavcodec/truemotion2.c @@ -660,7 +660,7 @@ static inline void tm2_still_block(TM2Context *ctx, AVFrame *pic, int bx, int by static inline void tm2_update_block(TM2Context *ctx, AVFrame *pic, int bx, int by) { int i, j; - int d; + unsigned d; TM2_INIT_POINTERS_2(); /* update chroma */ |