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>
Sat, 9 Sep 2017 23:33:28 +0000 (01:33 +0200)
commite6a8d110d7e8e938913a0a85ca933b415f8ed24d
tree52e8b2e7cbc24a945ab39048c5f2afe60ddf3dd2
parentcd221a86a6a322b85cd0db2ef14c669afcbb8887
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