summaryrefslogtreecommitdiff
path: root/libavcodec/ralf.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-12-27 00:11:59 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2020-01-30 19:59:48 +0100
commita71794e8c262a374dc6def8448319241cc504b3c (patch)
tree0332048f2c1455d9db265f870517f670cf790737 /libavcodec/ralf.c
parent32522b530779e155001b1a45e764d8185aa189e1 (diff)
avcodec/ralf: Fix overflows of biased values
Fixes: signed integer overflow: 2003010644 * 2 cannot be represented in type 'int' Fixes: 19593/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RALF_fuzzer-5660628006207488 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/ralf.c')
-rw-r--r--libavcodec/ralf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ralf.c b/libavcodec/ralf.c
index d8f1803086..5d88b4c943 100644
--- a/libavcodec/ralf.c
+++ b/libavcodec/ralf.c
@@ -60,7 +60,7 @@ typedef struct RALFContext {
int filter_bits; ///< filter precision for the current channel data
int32_t filter[64];
- int bias[2]; ///< a constant value added to channel data after filtering
+ unsigned bias[2]; ///< a constant value added to channel data after filtering
int num_blocks; ///< number of blocks inside the frame
int sample_offset;