[vlc-commits] dash: Don't crash when XML parsing fails.
Hugo Beauzée-Luyssen
git at videolan.org
Tue Jan 24 23:21:54 CET 2012
vlc/vlc-1.2 | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Dec 25 00:50:52 2011 +0100| [89c2aa13ad86fe68d833cbe8b7a145c3f4c62df0] | committer: Jean-Baptiste Kempf
dash: Don't crash when XML parsing fails.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 8ceecb115d38220c5653aa202ef0b28a3fc6605e)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=89c2aa13ad86fe68d833cbe8b7a145c3f4c62df0
---
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