summaryrefslogtreecommitdiff
path: root/libavcodec/flac_parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-09-19 16:28:57 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2019-10-08 16:24:58 +0200
commitc552c3ef70dc353ad5c18d145aa0167cf7b64c67 (patch)
tree52541d9972513b7e5a9c866ebfa8e3805a5ad795 /libavcodec/flac_parser.c
parent6023b9fbfef02b71f6acfb1b09e5a12fe9d276e2 (diff)
avcodec/flac_parser: Make expected_frame_num, expected_sample_num 64bit
Fixes: Integer overflow Fixes: 17199/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FLAC_fuzzer-5696145187143680 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/flac_parser.c')
-rw-r--r--libavcodec/flac_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c
index 9280246af2..9ffa288548 100644
--- a/libavcodec/flac_parser.c
+++ b/libavcodec/flac_parser.c
@@ -313,7 +313,7 @@ static int check_header_mismatch(FLACParseContext *fpc,
(child_fi->frame_or_sample_num
!= header_fi->frame_or_sample_num + 1)) {
FLACHeaderMarker *curr;
- int expected_frame_num, expected_sample_num;
+ int64_t expected_frame_num, expected_sample_num;
/* If there are frames in the middle we expect this deduction,
as they are probably valid and this one follows it */