diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-10 18:51:58 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-10 21:32:53 +0200 |
commit | 6ea428789371fa0601e9ebb5b7f2216d4e73e831 (patch) | |
tree | 8e25de9801687ea78df67b7187a902230a50e148 /libavcodec/dss_sp.c | |
parent | bd404e3949b081788247e2e6e9df0581ef7cc190 (diff) | |
download | ffmpeg-6ea428789371fa0601e9ebb5b7f2216d4e73e831.tar.gz |
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>
Diffstat (limited to 'libavcodec/dss_sp.c')
-rw-r--r-- | libavcodec/dss_sp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dss_sp.c b/libavcodec/dss_sp.c index 2100936e51..14025fcdde 100644 --- a/libavcodec/dss_sp.c +++ b/libavcodec/dss_sp.c @@ -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; |