[FFmpeg-cvslog] avcodec/apedec: Change avg to uint32_t
Michael Niedermayer
git at videolan.org
Thu Apr 14 01:08:27 EEST 2022
ffmpeg | branch: release/3.4 | Michael Niedermayer <michael at niedermayer.cc> | Fri Dec 3 17:58:50 2021 +0100| [7300c29bd4c61b7e12b0e68b1d0fb6ae14a81bbe] | committer: Michael Niedermayer
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 at khirnov.net>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 0ec75723a484405eb2f2ec2f9e58161b168ed8b0)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7300c29bd4c61b7e12b0e68b1d0fb6ae14a81bbe
---
libavcodec/apedec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
index d05aa741ef..9e3756fc32 100644
--- a/libavcodec/apedec.c
+++ b/libavcodec/apedec.c
@@ -101,7 +101,7 @@ typedef struct APEFilter {
int16_t *historybuffer; ///< filter memory
int16_t *delay; ///< filtered values
- int avg;
+ uint32_t avg;
} APEFilter;
typedef struct APERice {
More information about the ffmpeg-cvslog
mailing list