MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / Malloc

Method Malloc

rapidjson/allocators.h:66–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64public:
65 static const bool kNeedFree = true;
66 void* Malloc(size_t size) {
67 if (size) // behavior of malloc(0) is implementation defined.
68 return BinaryNinjaCore::bn_malloc<CrtAllocator>(size);
69 else
70 return NULL; // standardize to returning NULL.
71 }
72 void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) {
73 (void)originalSize;
74 if (newSize == 0) {

Callers 15

AddChunkMethod · 0.45
SchemaMethod · 0.45
AssignIfExistMethod · 0.45
CreatePatternMethod · 0.45
CreateSchemaMethod · 0.45
CreateSchemaValidatorMethod · 0.45
CreateHasherMethod · 0.45
MallocStateMethod · 0.45
EndValueMethod · 0.45
document.hFile · 0.45
SetArrayRawFunction · 0.45
SetObjectRawFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected