diff options
author | Your Name <you@example.com> | 2021-08-17 18:30:30 +0100 |
---|---|---|
committer | Your Name <you@example.com> | 2021-08-17 18:30:30 +0100 |
commit | 5f20137e9dfdc1f77e6b579b8a614907b18fbf97 (patch) | |
tree | 3ed72ab8e6cfad79b97e65b4001544c5fe76e776 /frida_mode/ts/lib/afl.ts | |
parent | 2a68d37b4f545698d745086077db5ca9d25dc5dd (diff) | |
download | afl++-5f20137e9dfdc1f77e6b579b8a614907b18fbf97.tar.gz |
Add support for generating coverage information
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 6326c099..c1ed123e 100644 --- a/frida_mode/ts/lib/afl.ts +++ b/frida_mode/ts/lib/afl.ts @@ -104,6 +104,15 @@ class Afl { } /** + * See `AFL_FRIDA_INST_COVERAGE_FILE`. This function takes a single `string` + * as an argument. + */ + public static setInstrumentCoverageFile(file: string): void { + const buf = Memory.allocUtf8String(file); + Afl.jsApiSetInstrumentCoverageFile(buf); + } + + /** * See `AFL_FRIDA_INST_DEBUG_FILE`. This function takes a single `string` as * an argument. */ @@ -282,6 +291,11 @@ class Afl { "void", ["pointer"]); + private static readonly jsApiSetInstrumentCoverageFile = Afl.jsApiGetFunction( + "js_api_set_instrument_coverage_file", + "void", + ["pointer"]); + private static readonly jsApiSetInstrumentDebugFile = Afl.jsApiGetFunction( "js_api_set_instrument_debug_file", "void", |