NULL pointer dereference on Config_Clear
Description
On calls to SOPC_S2OPC_Config_Clear
with config
partially initialized, we trigger an access violation.
Analysis
SOPC_ServerConfig_Clear
accesses to ith elements of lists that may not exist.
Even when the configuration is correctly fully initialized, these pointers may be NULL
.
Indeed, the <ApplicationCertificates>
node in the configuration XML is optional.
Changes
- check pointer value before dereferencing it