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

Function readstr

900v3/kexploit.js:171–182  ·  view source on GitHub ↗
(addr)

Source from the content-addressed store, hash-verified

169 }
170
171 function readstr(addr) {
172 var str = "";
173 for (var i = 0;; i++) {
174 var c = p.read1(addr.add32(i));
175 if (c == 0x0) {
176 break;
177 }
178 str += String.fromCharCode(c);
179
180 }
181 return str;
182 }
183
184 var fakeVtable_setjmp = p.malloc32(0x200);
185 var fakeVtable_longjmp = p.malloc32(0x200);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected