diff options
| author | Your Name <you@example.com> | 2021-08-26 18:06:41 +0100 |
|---|---|---|
| committer | Your Name <you@example.com> | 2021-08-26 18:06:41 +0100 |
| commit | e5f5d5886af5d3fad07c2e64945236258b3aca23 (patch) | |
| tree | a35abfb3649e7a58335926f91c3ddd80fc82581f /frida_mode/ts/lib/afl.ts | |
| parent | 86f920f64535e724752022fced4e0b7e5c7d121a (diff) | |
| download | afl++-e5f5d5886af5d3fad07c2e64945236258b3aca23.tar.gz | |
Add unstable coverage support
Diffstat (limited to 'frida_mode/ts/lib/afl.ts')
| -rw-r--r-- | frida_mode/ts/lib/afl.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/frida_mode/ts/lib/afl.ts b/frida_mode/ts/lib/afl.ts index d7f8b7bc..c722f558 100644 --- a/frida_mode/ts/lib/afl.ts +++ b/frida_mode/ts/lib/afl.ts @@ -164,6 +164,15 @@ class Afl { } /** + * See `AFL_FRIDA_INST_UNSTABLE_COVERAGE_FILE`. This function takes a single + * `string` as an argument. + */ + public static setInstrumentUnstableCoverageFile(file: string): void { + const buf = Memory.allocUtf8String(file); + Afl.jsApiSetInstrumentUnstableCoverageFile(buf); + } + + /** * This is equivalent to setting `AFL_FRIDA_PERSISTENT_ADDR`, again a * `NativePointer` should be provided as it's argument. */ @@ -338,6 +347,11 @@ class Afl { "void", []); + private static readonly jsApiSetInstrumentUnstableCoverageFile = Afl.jsApiGetFunction( + "js_api_set_instrument_unstable_coverage_file", + "void", + ["pointer"]); + private static readonly jsApiSetPersistentAddress = Afl.jsApiGetFunction( "js_api_set_persistent_address", "void", |
