SOPC_Buffer_Create fails when size is null
Description
SOPC_Buffer_Create
fails when trying to create an empty buffer. However, when using it through SOPC_Buffer_ReadFile
, the later fails with error SOPC_STATUS_OUT_OF_MEMORY
. This return code is unexpected for an empty file.
Either fix SOPC_Buffer_Create
to accept the creation of empty buffer, or fix SOPC_Buffer_ReadFile
to return something other than out of memory when reading an empty file