Avoid access violation in assertion.
xmlParser->pCurElement was dereferenced before null check. Affects debug build only.
This commit is contained in:
parent
cec9d55c4c
commit
71ab707e81
@ -2,6 +2,13 @@
|
||||
Version 1.6.16
|
||||
*******************************************************************************
|
||||
|
||||
2012-03-07 Yoichi NAKAYAMA <yoichi.nakayama(at)gmail.com>
|
||||
|
||||
Avoid access violation in assertion.
|
||||
|
||||
xmlParser->pCurElement was dereferenced before null check.
|
||||
Affects debug build only.
|
||||
|
||||
2012-03-07 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||
|
||||
Remove SIZEOF_MISTACH error in notify_send_and_recv
|
||||
|
@ -2254,14 +2254,14 @@ static int Parser_isValidEndElement(
|
||||
IXML_Node *newNode)
|
||||
{
|
||||
assert(xmlParser);
|
||||
assert(xmlParser->pCurElement->element);
|
||||
assert(newNode);
|
||||
assert(newNode->nodeName);
|
||||
|
||||
if (xmlParser->pCurElement == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
assert(xmlParser->pCurElement->element);
|
||||
assert(newNode);
|
||||
assert(newNode->nodeName);
|
||||
return strcmp(xmlParser->pCurElement->element, newNode->nodeName) == 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user