summaryrefslogtreecommitdiff
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index b09a715d86..b10c3efa61 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -244,7 +244,7 @@ static int read_odml_index(AVFormatContext *s, int64_t frame_num)
avio_rl32(pb); /* size */
duration = avio_rl32(pb);
- if (avio_feof(pb))
+ if (avio_feof(pb) || offset > INT64_MAX - 8)
return AVERROR_INVALIDDATA;
pos = avio_tell(pb);