[vlc-commits] asx: don´t jam on invali =?UTF-8?Q?d=20XML=20streams=20?=(fixes #18070)

Rémi Denis-Courmont git at videolan.org
Sat Mar 4 22:00:59 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar  4 23:00:38 2017 +0200| [fa08bfb63bd4ed5e1bdaadd9a681f7388d6a5ede] | committer: Rémi Denis-Courmont

asx: don´t jam on invalid XML streams (fixes #18070)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fa08bfb63bd4ed5e1bdaadd9a681f7388d6a5ede
---

 modules/demux/playlist/asx.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/playlist/asx.c b/modules/demux/playlist/asx.c
index 7925ff7..1b862a3 100644
--- a/modules/demux/playlist/asx.c
+++ b/modules/demux/playlist/asx.c
@@ -342,6 +342,9 @@ static int Demux( demux_t *p_demux )
     do
     {
         i_type = xml_ReaderNextNode( p_xml_reader, &psz_node );
+        if( i_type == XML_READER_ERROR )
+            break;
+
         if( i_type == XML_READER_STARTELEM )
         {
             if( !b_first_node )



More information about the vlc-commits mailing list