MCPcopy Create free account
hub / github.com/Yeuoly/0xUBypass / gmp_default_alloc

Function gmp_default_alloc

WindowsShellcodeInjector/mini-gmp.cpp:254–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254static void *
255gmp_default_alloc(size_t size)
256{
257 void *p;
258
259 assert(size > 0);
260
261 p = malloc(size);
262 if (!p)
263 gmp_die("gmp_default_alloc: Virtual memory exhausted.");
264
265 return p;
266}
267
268static void *
269gmp_default_realloc(void *old, size_t old_size, size_t new_size)

Callers

nothing calls this directly

Calls 1

gmp_dieFunction · 0.85

Tested by

no test coverage detected