Commit 3aecd017 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c8307521
...@@ -681,7 +681,7 @@ static inline void tm2_still_block(TM2Context *ctx, AVFrame *pic, int bx, int by ...@@ -681,7 +681,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) static inline void tm2_update_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
{ {
int i, j; int i, j;
int d; unsigned d;
TM2_INIT_POINTERS_2(); TM2_INIT_POINTERS_2();
/* update chroma */ /* update chroma */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment