Browse Source

avcodec/truemotion2: Fix integer overflow in tm2_null_res_block()

Fixes: signed integer overflow: 1111638592 - -2122219136 cannot be represented in type 'int'
Fixes: 13441/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5732769815068672

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 1223696c72)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.4.6
Michael Niedermayer 7 years ago
parent
commit
807d443c7e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/truemotion2.c

+ 2
- 1
libavcodec/truemotion2.c View File

@@ -587,7 +587,8 @@ static inline void tm2_null_res_block(TM2Context *ctx, AVFrame *pic, int bx, int
{
int i;
int ct;
int left, right, diff;
unsigned left, right;
int diff;
int deltas[16];
TM2_INIT_POINTERS();



Loading…
Cancel
Save