Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r--libavformat/rmdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index b0aced5db9..acfabeef25 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -565,6 +565,8 @@ static int rm_read_header(AVFormatContext *s)
}
tag_size = avio_rb32(pb);
+ if (tag_size < 0)
+ return AVERROR_INVALIDDATA;
avio_skip(pb, tag_size - 8);
for(;;) {