From 484e539019a69be538652cf1e9060ebc7d8f289b Mon Sep 17 00:00:00 2001 From: Markus Koschany Date: Sun, 30 Dec 2018 20:51:01 +0100 Subject: [PATCH] CVE-2017-14171 Origin: https://github.com/FFmpeg/FFmpeg/commit/c24bcb553650b91e9eff15ef6e54ca73de2453b7 Gbp-Pq: Name CVE-2017-14171.patch --- libavformat/nsvdec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c index 670b867..25cc443 100644 --- a/libavformat/nsvdec.c +++ b/libavformat/nsvdec.c @@ -351,8 +351,11 @@ static int nsv_parse_NSVf_header(AVFormatContext *s) if (!nsv->nsvs_file_offset) return AVERROR(ENOMEM); - for(i=0;insvs_file_offset[i] = avio_rl32(pb) + size; + } if(table_entries > table_entries_used && avio_rl32(pb) == MKTAG('T','O','C','2')) { -- 2.30.2