aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wavpack.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-06-11 20:19:59 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-06-11 20:52:47 +0200
commitc996374d4d86e0efbef71812448b4c65656bc667 (patch)
tree54418ce9146121f93a77f8b512645decf2a3fd6b /libavcodec/wavpack.h
parente3887c0a2c57622bbd59bea1b19813ac506b16a7 (diff)
downloadffmpeg-c996374d4d86e0efbef71812448b4c65656bc667.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>
Diffstat (limited to 'libavcodec/wavpack.h')
-rw-r--r--libavcodec/wavpack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wavpack.h b/libavcodec/wavpack.h
index c949390f51..053b1c575d 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