diff options
| author | van Hauser <vh@thc.org> | 2021-08-18 10:16:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-18 10:16:22 +0200 |
| commit | dbb793646e8ea0998c747bd1450a29d18737dcbd (patch) | |
| tree | cd0dcdb171c55f2973b711b1d5fc8d2f6b5aabd1 /frida_mode/ts/lib/afl.ts | |
| parent | 69b7f2cae4fbb1ad34fd6a01aa0056126d7609d0 (diff) | |
| parent | 10c98c2a4c6ef73e25d460933eeda60e320c9bbf (diff) | |
| download | afl++-dbb793646e8ea0998c747bd1450a29d18737dcbd.tar.gz | |
Merge pull request #1071 from WorksButNotTested/many-local
Many local
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", |
