Commit 5e7910c3 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf
Browse files

dash: Fixing a crash with invalid XML documents.


Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 0290575b
...@@ -71,7 +71,7 @@ Node* DOMParser::processNode () ...@@ -71,7 +71,7 @@ Node* DOMParser::processNode ()
{ {
const char *data; const char *data;
int type = xml_ReaderNextNode(this->vlc_reader, &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(); Node *node = new Node();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment