rapidjson
rapidjson copied to clipboard
add assertions after memory alloc to make sure the alloc is successful.
Add assertions after memory alloc for SetStringRaw, SetObjectRaw, SetArrayRaw and DoCopyMembers in document.h.
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
Thank you!! Adding this helped to track down a problem that was otherwise a silent failure. Without this, the parse call showed no error but contained no DOM objects.