Browse Source

avcodec/dss_sp: Fix runtime error: signed integer overflow: 2147481189 + 4096 cannot be represented in type 'int'

Fixes: 1441/clusterfuzz-testcase-minimized-6223152357048320

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 6ea4287893)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0.8
Michael Niedermayer 8 years ago
parent
commit
7b4d0a2402
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/dss_sp.c

+ 1
- 1
libavcodec/dss_sp.c View File

@@ -529,7 +529,7 @@ static void dss_sp_shift_sq_sub(const int32_t *filter_buf,
for (i = 14; i > 0; i--)
error_buf[i] = error_buf[i - 1];

tmp = (tmp + 4096) >> 13;
tmp = (int)(tmp + 4096U) >> 13;

error_buf[1] = tmp;



Loading…
Cancel
Save