avformat/nsvdec: Fix DoS due to lack of eof check in nsvs_file_offset loop.
author孙浩(晓黑) <tony.sh@alibaba-inc.com>
Tue, 29 Aug 2017 21:59:21 +0000 (23:59 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 1 Sep 2017 01:03:44 +0000 (03:03 +0200)
commit5b3986023bbf3a8beb36d30ae580132b8bd66670
tree3c32ac436b9750029bd7718d8a603865cfda0c66
parent74429912dcd7392fae477f7a2eaa99cd36ee9a5e
avformat/nsvdec: Fix DoS due to lack of eof check in nsvs_file_offset loop.

Fixes: 20170829.nsv

Co-Author: 张洪亮(望初)" <wangchu.zhl@alibaba-inc.com>
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c24bcb553650b91e9eff15ef6e54ca73de2453b7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/nsvdec.c