diff options
Diffstat (limited to 'plugins/ropgadgets')
-rw-r--r-- | plugins/ropgadgets/finder.c | 2 | ||||
-rw-r--r-- | plugins/ropgadgets/select.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/plugins/ropgadgets/finder.c b/plugins/ropgadgets/finder.c index a63de93..3fbc0fd 100644 --- a/plugins/ropgadgets/finder.c +++ b/plugins/ropgadgets/finder.c @@ -331,7 +331,7 @@ found_rop_list *list_all_gadgets(GBinFormat *format, unsigned int max_depth, upd g_object_ref(G_OBJECT(format)); domain.format = format; - domain.content = g_binary_format_get_conten_(format); + domain.content = g_binary_format_get_content(format); target = g_exe_format_get_target_machine(G_EXE_FORMAT(format)); domain.proc = get_arch_processor_for_type(target); diff --git a/plugins/ropgadgets/select.c b/plugins/ropgadgets/select.c index 66c2add..826682c 100644 --- a/plugins/ropgadgets/select.c +++ b/plugins/ropgadgets/select.c @@ -1748,7 +1748,7 @@ static void add_new_gadgets_for_category(GBinFormat *format, GtkComboBoxText *co const char *target; /* Sous-traitance requise */ GArchProcessor *proc; /* Architecture du binaire */ MemoryDataSize msize; /* Taille du bus d'adresses */ - const bin_t *content; /* Contenu binaire global */ + const GBinContent *content; /* Contenu binaire global */ GCodeBuffer *buffer; /* Tampon de rassemblement */ size_t i; /* Boucle de parcours */ GArchInstruction *instr; /* Elément de liste de gadgets */ @@ -1770,7 +1770,7 @@ static void add_new_gadgets_for_category(GBinFormat *format, GtkComboBoxText *co g_object_unref(G_OBJECT(proc)); - content = g_binary_format_get_content(G_BIN_FORMAT(format), NULL); + content = g_binary_format_get_content(G_BIN_FORMAT(format)); /* Conversion en contenu textuel */ @@ -1835,6 +1835,8 @@ static void add_new_gadgets_for_category(GBinFormat *format, GtkComboBoxText *co g_object_unref(G_OBJECT(buffer)); + g_object_unref(G_OBJECT(content)); + /* Rajout de la catégorie et filtre au besoin */ gtk_combo_box_text_append_text(combo, category); |