rapidjson icon indicating copy to clipboard operation
rapidjson copied to clipboard

add assertions after memory alloc to make sure the alloc is successful.

Open ken4647 opened this issue 1 year ago • 1 comments

Add assertions after memory alloc for SetStringRaw, SetObjectRaw, SetArrayRaw and DoCopyMembers in document.h.

ken4647 avatar Oct 21 '24 06:10 ken4647

CLA assistant check
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.

tencent-adm avatar Oct 21 '24 06:10 tencent-adm

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.

tmorrisman avatar Jun 30 '25 14:06 tmorrisman