aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/apedec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-12-03 17:58:50 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2021-12-09 13:27:23 +0100
commit0ec75723a484405eb2f2ec2f9e58161b168ed8b0 (patch)
tree0bf9a17f9b871c8a78046915cb5e187065a45970 /libavcodec/apedec.c
parent1e85a698c01133a7f8d35502d5901e3b65fa3317 (diff)
downloadffmpeg-0ec75723a484405eb2f2ec2f9e58161b168ed8b0.tar.gz
avcodec/apedec: Change avg to uint32_t
Fixes: Integer overflow Fixes: 40973/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-6739312704618496 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Suggested-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/apedec.c')
-rw-r--r--libavcodec/apedec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
index 9c723f2997..35a2e617e6 100644
--- a/libavcodec/apedec.c
+++ b/libavcodec/apedec.c
@@ -102,7 +102,7 @@ typedef struct APEFilter {
int16_t *historybuffer; ///< filter memory
int16_t *delay; ///< filtered values
- int avg;
+ uint32_t avg;
} APEFilter;
typedef struct APERice {