about summary refs log tree commit diff
path: root/frida_mode/ts/lib
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-11-09 09:49:09 +0100
committerGitHub <noreply@github.com>2021-11-09 09:49:09 +0100
commit3d9b2b459fb96bb724c9529935b1e2232249d201 (patch)
tree85d1c242ca03f5066b82b66b89b601a5f2bf7855 /frida_mode/ts/lib
parent33f9af976be98b14ea185c1415e25d39acc0595a (diff)
parentb834f934d0e6a33f675a30402475c7bc816a37ee (diff)
downloadafl++-3d9b2b459fb96bb724c9529935b1e2232249d201.tar.gz
Merge pull request #1150 from WorksButNotTested/perf-final
Perf final
Diffstat (limited to 'frida_mode/ts/lib')
-rw-r--r--frida_mode/ts/lib/afl.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/frida_mode/ts/lib/afl.ts b/frida_mode/ts/lib/afl.ts
index 538d9b70..3639d670 100644
--- a/frida_mode/ts/lib/afl.ts
+++ b/frida_mode/ts/lib/afl.ts
@@ -78,6 +78,13 @@ class Afl {
   }
 
   /**
+   * See `AFL_FRIDA_INST_NO_BACKPATCH`.
+   */
+  public static setBackpatchDisable(): void {
+    Afl.jsApiSetBackpatchDisable();
+  }
+
+  /**
    * See `AFL_FRIDA_DEBUG_MAPS`.
    */
   public static setDebugMaps(): void {
@@ -313,6 +320,11 @@ class Afl {
     "void",
     ["pointer"]);
 
+  private static readonly jsApiSetBackpatchDisable = Afl.jsApiGetFunction(
+    "js_api_set_backpatch_disable",
+    "void",
+    []);
+
   private static readonly jsApiSetDebugMaps = Afl.jsApiGetFunction(
     "js_api_set_debug_maps",
     "void",