mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-11 01:31:37 +00:00
Updates following FRIDA API changes
This commit is contained in:
parent
182013a26f
commit
23e477caa7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user