diff options
| author | Your Name <you@example.com> | 2021-11-15 17:14:04 +0000 |
|---|---|---|
| committer | Your Name <you@example.com> | 2021-11-15 17:14:04 +0000 |
| commit | e1d3fe30dec150aa7111cb623a7362a8026963a8 (patch) | |
| tree | 742fa445c7dcf1bf868bd025ee7680dd13b27604 /frida_mode/ts | |
| parent | de90fd652e01797f129bfc23c24fa766b4c756a2 (diff) | |
| download | afl++-e1d3fe30dec150aa7111cb623a7362a8026963a8.tar.gz | |
Changes to allow configuration of stalker adjacent blocks
Diffstat (limited to 'frida_mode/ts')
| -rw-r--r-- | frida_mode/ts/lib/afl.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/frida_mode/ts/lib/afl.ts b/frida_mode/ts/lib/afl.ts index 3639d670..e20ad3ec 100644 --- a/frida_mode/ts/lib/afl.ts +++ b/frida_mode/ts/lib/afl.ts @@ -241,6 +241,13 @@ class Afl { Afl.jsApiSetSeccompFile(buf); } + /** + * See `AFL_FRIDA_STALKER_ADJACENT_BLOCKS`. + */ + public static setStalkerAdjacentBlocks(val: number): void { + Afl.jsApiSetStalkerAdjacentBlocks(val); + } + /* * Set a function to be called for each instruction which is instrumented * by AFL FRIDA mode. @@ -425,6 +432,11 @@ class Afl { "void", ["pointer"]); + private static readonly jsApiSetStalkerAdjacentBlocks = Afl.jsApiGetFunction( + "js_api_set_stalker_adjacent_blocks", + "void", + ["uint32"]); + private static readonly jsApiSetStalkerIcEntries = Afl.jsApiGetFunction( "js_api_set_stalker_ic_entries", "void", |
