-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Describe the bug
In src/rapidxmlsupport/XMLFileNodeImpl.cpp, function: VCOMError CXMLFileNodeImpl::GetInterface(tinyxml2::XMLElement* element, IXMLFileNode** ppOutNode) lines 302-303,
In the else block where pResultInterface is null, it is being dereferenced.
To Reproduce
N/A
Expected behavior
if (pResultInterface) { pResultInterface->SetElement(element); } else { return kVCOMError_NoInterface; }
Screenshots
if (pResultInterface) { pResultInterface->SetElement(element); } else { **pResultInterface->Release(); pResultInterface = nullptr;** return kVCOMError_NoInterface; }
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
Add any other context about the problem here.