[FFmpeg-cvslog] avformat/4xm: Make audio_frame_count 64bit
Michael Niedermayer
git at videolan.org
Fri Feb 5 00:38:09 EET 2021
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Nov 22 20:41:56 2020 +0100| [842c268c6436c9e90e689402be138c2e539f7059] | committer: Michael Niedermayer
avformat/4xm: Make audio_frame_count 64bit
Fixes: signed integer overflow: 2099257366 * 2 cannot be represented in type 'int'
Fixes: 27486/clusterfuzz-testcase-minimized-ffmpeg_dem_FOURXM_fuzzer-5112179134824448
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=842c268c6436c9e90e689402be138c2e539f7059
---
libavformat/4xm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/4xm.c b/libavformat/4xm.c
index 6a227a0b0d..30f1b05324 100644
--- a/libavformat/4xm.c
+++ b/libavformat/4xm.c
@@ -299,7 +299,7 @@ static int fourxm_read_packet(AVFormatContext *s,
unsigned int track_number;
int packet_read = 0;
unsigned char header[8];
- int audio_frame_count;
+ int64_t audio_frame_count;
while (!packet_read) {
if ((ret = avio_read(s->pb, header, 8)) < 0)
More information about the ffmpeg-cvslog
mailing list