mirror of
https://github.com/open62541/open62541.git
synced 2026-10-29 05:11:36 +08:00
Stack: Check for out-of-memory while creating server config
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11646 Credit to oss-fuzz
This commit is contained in:
committed by
Stefan Profanter
parent
60d392285e
commit
b07583145f
@@ -256,6 +256,9 @@ UA_ServerConfig_new_customBuffer(UA_UInt16 portNumber,
|
||||
UA_UInt32 sendBufferSize,
|
||||
UA_UInt32 recvBufferSize) {
|
||||
UA_ServerConfig *conf = createDefaultConfig();
|
||||
if (!conf) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
UA_StatusCode retval = UA_Nodestore_default_new(&conf->nodestore);
|
||||
if(retval != UA_STATUSCODE_GOOD) {
|
||||
|
||||
Reference in New Issue
Block a user