vlc | branch: master | Hugo Beauzée-Luyssen <beauz...@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 <j...@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; } _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org http://mailman.videolan.org/listinfo/vlc-commits