diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2020-10-25 00:23:10 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-09-11 21:23:48 +0200 |
commit | caefd7a3ba9fd48f1204d9b16a4e619fb85c4aa6 (patch) | |
tree | b12184db989fd1cf61929b887912e111964f3961 /libavformat | |
parent | 9ca75063eae7a2d755391fcd8c7f5c10255245d0 (diff) | |
download | ffmpeg-caefd7a3ba9fd48f1204d9b16a4e619fb85c4aa6.tar.gz |
avformat/avs: Use 64bit for the avio_tell() output
Fixes: signed integer overflow: 9223372036854775807 - -1 cannot be represented in type 'long'
Fixes: 26549/clusterfuzz-testcase-minimized-ffmpeg_dem_AVS_fuzzer-4844306424397824
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 1278f117d75ab9238ef181ba29b31c6ea569571b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avs.c b/libavformat/avs.c index 763ba63f64..544263957f 100644 --- a/libavformat/avs.c +++ b/libavformat/avs.c @@ -123,7 +123,8 @@ avs_read_video_packet(AVFormatContext * s, AVPacket * pkt, static int avs_read_audio_packet(AVFormatContext * s, AVPacket * pkt) { AvsFormat *avs = s->priv_data; - int ret, size; + int ret; + int64_t size; size = avio_tell(s->pb); ret = ff_voc_get_packet(s, pkt, avs->st_audio, avs->remaining_audio_size); |