[vlc-commits] dash: Don't crash when XML parsing fails.
    Hugo Beauzée-Luyssen 
    git at videolan.org
       
    Fri Dec 30 18:15:32 CET 2011
    
    
  
vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Dec 25 00:50:52 2011 +0100| [8ceecb115d38220c5653aa202ef0b28a3fc6605e] | committer: Jean-Baptiste Kempf
dash: Don't crash when XML parsing fails.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8ceecb115d38220c5653aa202ef0b28a3fc6605e
---
 modules/stream_filter/dash/xml/DOMParser.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/stream_filter/dash/xml/DOMParser.cpp b/modules/stream_filter/dash/xml/DOMParser.cpp
index a860236..4736fba 100644
--- a/modules/stream_filter/dash/xml/DOMParser.cpp
+++ b/modules/stream_filter/dash/xml/DOMParser.cpp
@@ -65,6 +65,8 @@ bool    DOMParser::parse                    ()
         return false;
 
     this->root = this->processNode();
+    if ( this->root == NULL )
+        return false;
 
     return true;
 }
    
    
More information about the vlc-commits
mailing list