diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-11 20:19:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-16 01:05:30 +0200 |
commit | 266ecedc75f2f40d333dfb7644118f52bbc67474 (patch) | |
tree | 74570ad32ea2ffd475f62260d79e2fe7fe8cee08 | |
parent | 753d04b618e7b87ffdad6dd3189c031f4d01b038 (diff) | |
download | ffmpeg-266ecedc75f2f40d333dfb7644118f52bbc67474.tar.gz |
avcodec/wavpack: Fix runtime error: signed integer overflow: 1886191616 + 277872640 cannot be represented in type 'int'
Fixes: 2181/clusterfuzz-testcase-minimized-6314784322486272
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 c996374d4d86e0efbef71812448b4c65656bc667)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/wavpack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wavpack.h b/libavcodec/wavpack.h index a1b46d5bd7..c71006112a 100644 --- a/libavcodec/wavpack.h +++ b/libavcodec/wavpack.h @@ -94,7 +94,7 @@ typedef struct Decorr { typedef struct WvChannel { int median[3]; int slow_level, error_limit; - int bitrate_acc, bitrate_delta; + unsigned bitrate_acc, bitrate_delta; } WvChannel; // macros for manipulating median values |