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

Function malloc32

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

Source from the content-addressed store, hash-verified

140 }
141
142 function malloc32(sz) {
143 var backing = new Uint8Array(0x10000 + sz * 4);
144 window.nogc.push(backing);
145 var ptr = p.read8(p.leakval(backing).add32(0x10));
146 ptr.backing = new Uint32Array(backing.buffer);
147 return ptr;
148 }
149
150 function array_from_address(addr, size) {
151 var og_array = new Uint32Array(0x1000);

Callers

nothing calls this directly

Calls 1

read8Method · 0.45

Tested by

no test coverage detected