mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 10:08:07 +00:00
Updates following FRIDA API changes
This commit is contained in:
@ -18,14 +18,10 @@ static GumScriptScheduler *scheduler;
|
|||||||
static GMainContext *context;
|
static GMainContext *context;
|
||||||
static GMainLoop *main_loop;
|
static GMainLoop *main_loop;
|
||||||
|
|
||||||
static void js_msg(GumScript *script, const gchar *message, GBytes *data,
|
static void js_msg(const gchar *message, GBytes *data, gpointer user_data) {
|
||||||
gpointer user_data) {
|
|
||||||
|
|
||||||
UNUSED_PARAMETER(script);
|
|
||||||
UNUSED_PARAMETER(data);
|
UNUSED_PARAMETER(data);
|
||||||
UNUSED_PARAMETER(user_data);
|
UNUSED_PARAMETER(user_data);
|
||||||
FOKF("%s", message);
|
FOKF("%s", message);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void js_config(void) {
|
void js_config(void) {
|
||||||
@ -124,8 +120,8 @@ void js_start(void) {
|
|||||||
main_loop = g_main_loop_new(context, true);
|
main_loop = g_main_loop_new(context, true);
|
||||||
g_main_context_push_thread_default(context);
|
g_main_context_push_thread_default(context);
|
||||||
|
|
||||||
gum_script_backend_create(backend, "example", source, cancellable, create_cb,
|
gum_script_backend_create(backend, "example", source, NULL, cancellable,
|
||||||
&error);
|
create_cb, &error);
|
||||||
|
|
||||||
while (g_main_context_pending(context))
|
while (g_main_context_pending(context))
|
||||||
g_main_context_iteration(context, FALSE);
|
g_main_context_iteration(context, FALSE);
|
||||||
|
Reference in New Issue
Block a user