avformat/hls: Fix DoS due to infinite loop
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 25 Aug 2017 23:26:58 +0000 (01:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Sep 2017 23:33:28 +0000 (01:33 +0200)
commit305f37e5be009c66e0af3064855c8509aafba719
tree41a1cead73719fdf2f063a442ce77f6307e49a41
parent85ffdcd8ffe4a10c52469abcdc8371173f41d7b7
avformat/hls: Fix DoS due to infinite loop

Fixes: loop.m3u

The default max iteration count of 1000 is arbitrary and ideas for a better solution are welcome

Found-by: Xiaohei and Wangchu from Alibaba Security Team
Previous version reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 7ec414892ddcad88313848494b6fc5f437c9ca4a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
doc/demuxers.texi
libavformat/hls.c