MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / malloc

Function malloc

restore/900v3/kexploit.js:134–140  ·  view source on GitHub ↗
(sz)

Source from the content-addressed store, hash-verified

132 }
133
134 function malloc(sz) {
135 var backing = new Uint8Array(0x10000 + sz);
136 window.nogc.push(backing);
137 var ptr = p.read8(p.leakval(backing).add32(0x10));
138 ptr.backing = backing;
139 return ptr;
140 }
141
142 function malloc32(sz) {
143 var backing = new Uint8Array(0x10000 + sz * 4);

Callers

nothing calls this directly

Calls 1

read8Method · 0.45

Tested by

no test coverage detected