diff options
author | Your Name <you@example.com> | 2022-10-11 18:15:51 +0100 |
---|---|---|
committer | Your Name <you@example.com> | 2022-10-11 18:15:51 +0100 |
commit | 23e477caa76a0fd56e61419c9c3cee84a7881438 (patch) | |
tree | 77944784b5777154b1f2f233599caecd7e85f9cb | |
parent | 182013a26f8d3ad16b6b4d8426b061966e849c96 (diff) | |
download | afl++-23e477caa76a0fd56e61419c9c3cee84a7881438.tar.gz |
Updates following FRIDA API changes
-rw-r--r-- | frida_mode/src/js/js.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/frida_mode/src/js/js.c b/frida_mode/src/js/js.c index 6bc31864..52b88d96 100644 --- a/frida_mode/src/js/js.c +++ b/frida_mode/src/js/js.c @@ -18,14 +18,10 @@ static GumScriptScheduler *scheduler; static GMainContext *context; static GMainLoop *main_loop; -static void js_msg(GumScript *script, const gchar *message, GBytes *data, - gpointer user_data) { - - UNUSED_PARAMETER(script); +static void js_msg(const gchar *message, GBytes *data, gpointer user_data) { UNUSED_PARAMETER(data); UNUSED_PARAMETER(user_data); FOKF("%s", message); - } void js_config(void) { @@ -124,8 +120,8 @@ void js_start(void) { main_loop = g_main_loop_new(context, true); g_main_context_push_thread_default(context); - gum_script_backend_create(backend, "example", source, cancellable, create_cb, - &error); + gum_script_backend_create(backend, "example", source, NULL, cancellable, + create_cb, &error); while (g_main_context_pending(context)) g_main_context_iteration(context, FALSE); |