[vlc-commits] dash: Fixing a crash with invalid XML documents.
Hugo Beauzée-Luyssen
git at videolan.org
Mon Nov 28 20:24:32 CET 2011
vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon Nov 28 14:10:20 2011 +0100| [5e7910c3766da1568b2be169e6733f1dd6e7f7e7] | committer: Jean-Baptiste Kempf
dash: Fixing a crash with invalid XML documents.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e7910c3766da1568b2be169e6733f1dd6e7f7e7
---
modules/stream_filter/dash/xml/DOMParser.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/stream_filter/dash/xml/DOMParser.cpp b/modules/stream_filter/dash/xml/DOMParser.cpp
index 1616167..c522de3 100644
--- a/modules/stream_filter/dash/xml/DOMParser.cpp
+++ b/modules/stream_filter/dash/xml/DOMParser.cpp
@@ -71,7 +71,7 @@ Node* DOMParser::processNode ()
{
const char *data;
int type = xml_ReaderNextNode(this->vlc_reader, &data);
- if(type != XML_READER_TEXT && type != XML_READER_NONE && type != XML_READER_ENDELEM)
+ if(type != -1 && type != XML_READER_TEXT && type != XML_READER_NONE && type != XML_READER_ENDELEM)
{
Node *node = new Node();
More information about the vlc-commits
mailing list