rapidjson icon indicating copy to clipboard operation
rapidjson copied to clipboard

Throw std::bad_alloc on malloc/realloc failure

Open cwe-skov-dk opened this issue 3 years ago • 1 comments

CodeSonar [1] complains about writing to NULL pointers inside document.h: SetObjectRaw(), SetArrayRaw(), and SetStringRaw().

[1] https://www.grammatech.com/codesonar-cc

cwe-skov-dk avatar Sep 29 '22 10:09 cwe-skov-dk

CLA assistant check
All committers have signed the CLA.

tencent-adm avatar Sep 29 '22 10:09 tencent-adm