diff options
| author | van Hauser <vh@thc.org> | 2022-04-03 09:30:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-03 09:30:23 +0200 |
| commit | 881aef21fd6ca3f3bcf0847587d4d6d86f3a69db (patch) | |
| tree | d076384dedf423a4bb7c3d1507cb07281ebc2865 /frida_mode/ts | |
| parent | 1d4f1e48797c064ee71441ba555b29fc3f467983 (diff) | |
| parent | c4363dd8b3d19a3e4bab8bc1fca1708ae2ff7899 (diff) | |
| download | afl++-881aef21fd6ca3f3bcf0847587d4d6d86f3a69db.tar.gz | |
Merge pull request #1362 from AFLplusplus/dev
push to stable
Diffstat (limited to 'frida_mode/ts')
| -rw-r--r-- | frida_mode/ts/lib/afl.ts | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/frida_mode/ts/lib/afl.ts b/frida_mode/ts/lib/afl.ts index 57d7b5b5..a858f074 100644 --- a/frida_mode/ts/lib/afl.ts +++ b/frida_mode/ts/lib/afl.ts @@ -85,6 +85,13 @@ class Afl { } /** + * See `AFL_FRIDA_INST_NO_CACHE`. + */ + public static setCacheDisable(): void { + Afl.jsApiSetCacheDisable(); + } + + /** * See `AFL_FRIDA_DEBUG_MAPS`. */ public static setDebugMaps(): void { @@ -111,6 +118,14 @@ class Afl { } /** + * See `AFL_FRIDA_INST_CACHE_SIZE`. This function takes a single `number` + * as an argument. + */ + public static setInstrumentCacheSize(size: number): void { + Afl.jsApiSetInstrumentCacheSize(size); + } + + /** * See `AFL_FRIDA_INST_COVERAGE_FILE`. This function takes a single `string` * as an argument. */ @@ -136,6 +151,13 @@ class Afl { } /** + * See `AFL_FRIDA_INST_INSN` + */ + public static setInstrumentInstructions(): void { + Afl.jsApiSetInstrumentInstructions(); + } + + /** * See `AFL_FRIDA_INST_JIT`. */ public static setInstrumentJit(): void { @@ -347,6 +369,11 @@ class Afl { "void", []); + private static readonly jsApiSetCacheDisable = Afl.jsApiGetFunction( + "js_api_set_cache_disable", + "void", + []); + private static readonly jsApiSetDebugMaps = Afl.jsApiGetFunction( "js_api_set_debug_maps", "void", @@ -357,6 +384,11 @@ class Afl { "void", ["pointer"]); + private static readonly jsApiSetInstrumentCacheSize = Afl.jsApiGetFunction( + "js_api_set_instrument_cache_size", + "void", + ["size_t"]); + private static readonly jsApiSetInstrumentCoverageFile = Afl.jsApiGetFunction( "js_api_set_instrument_coverage_file", "void", @@ -367,6 +399,11 @@ class Afl { "void", ["pointer"]); + private static readonly jsApiSetInstrumentInstructions = Afl.jsApiGetFunction( + "js_api_set_instrument_instructions", + "void", + []); + private static readonly jsApiSetInstrumentJit = Afl.jsApiGetFunction( "js_api_set_instrument_jit", "void", |
