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:47 +0000 (03:03 +0200)
commit4fedc4ceabe32bb3bea68ab71cb42f0b6e409586
tree1a17886f1642e980f71499365168401e5ce8ca14
parent09a1d15de7942c32d1e17381c6ca8cc41e236afb
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