Avoid dereference of null pointer in ixmlNode_setNodeProperties.
The problem can occur if one of the arguments is NULL. Test argument and fix assertion.
This commit is contained in:
parent
e52e7e0bd3
commit
3d7c1dbd59
@ -2,6 +2,13 @@
|
|||||||
Version 1.6.18
|
Version 1.6.18
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
|
|
||||||
|
2012-04-20 Yoichi NAKAYAMA <yoichi.nakayama(at)gmail.com>
|
||||||
|
|
||||||
|
Avoid dereference of null pointer in ixmlNode_setNodeProperties.
|
||||||
|
|
||||||
|
The problem can occur if one of the arguments is NULL.
|
||||||
|
Test argument and fix assertion.
|
||||||
|
|
||||||
2012-04-17 Yoichi NAKAYAMA <yoichi.nakayama(at)gmail.com>
|
2012-04-17 Yoichi NAKAYAMA <yoichi.nakayama(at)gmail.com>
|
||||||
|
|
||||||
Create intermediate directory per project on vc9.
|
Create intermediate directory per project on vc9.
|
||||||
|
@ -1339,7 +1339,10 @@ int ixmlNode_setNodeProperties(
|
|||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
assert(destNode != NULL || src != NULL);
|
assert(destNode != NULL && src != NULL);
|
||||||
|
if(destNode == NULL || src == NULL) {
|
||||||
|
return IXML_INVALID_PARAMETER;
|
||||||
|
}
|
||||||
|
|
||||||
rc = ixmlNode_setNodeValue(destNode, src->nodeValue);
|
rc = ixmlNode_setNodeValue(destNode, src->nodeValue);
|
||||||
if(rc != IXML_SUCCESS) {
|
if(rc != IXML_SUCCESS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user