djbn65
djbn65
When building the perftest, schematest.cpp was yielding an error in relation to freeing a stack object. This change fixes that by explicitly passing in nullptr to CrtAllocator::Free if we don't...
This error comes from schematest.cpp line 129: ``` char jsonBuffer[65536]; MemoryPoolAllocator jsonAllocator(jsonBuffer, sizeof(jsonBuffer)); ``` The destructor for MemoryPoolAllocator does the following: ``` if (shared_->ownBuffer) { baseAllocator_->Free(shared_); } ``` When building...
This change fixes a potential integrer overflow due to assuming that unsigned is 4 bytes when there is no guarantee that unsigned types have a size of 4 bytes. The...