summaryrefslogtreecommitdiff
path: root/plugins/ropgadgets/finder.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-01-01 11:03:43 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-01-01 11:03:43 (GMT)
commit836e4ca6053594ceba7b78b8407d8a1f03491cd2 (patch)
treecd3965f626465835a2fef34c9a1901a581156c36 /plugins/ropgadgets/finder.h
parent6695dc89a45f188b04d956147dea25a85ad708cd (diff)
Removed usage of deprecated functions when looking for ROP gadgets.
Diffstat (limited to 'plugins/ropgadgets/finder.h')
-rw-r--r--plugins/ropgadgets/finder.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/ropgadgets/finder.h b/plugins/ropgadgets/finder.h
index a12035e..f12f3ed 100644
--- a/plugins/ropgadgets/finder.h
+++ b/plugins/ropgadgets/finder.h
@@ -34,12 +34,20 @@
typedef void (* update_search_progress_cb) (GObject *, gdouble);
+/* Chaîne d'instructions idéales */
+typedef struct _rop_chain
+{
+ GArchInstruction **instrs; /* Instructions bien combinées */
+ size_t count; /* Taille de cette liste */
+
+} rop_chain;
+
/* Catégorisation des résultats */
typedef struct _found_rop_list
{
const char *category; /* Désignation du groupe */
- GArchInstruction **gadgets; /* Gadgets pour ROP trouvés */
+ rop_chain **gadgets; /* Gadgets pour ROP trouvés */
size_t count; /* Taille de cette liste */
} found_rop_list;
@@ -48,6 +56,9 @@ typedef struct _found_rop_list
/* Etablit une liste de tous les gadgets présents. */
found_rop_list *list_all_gadgets(GExeFormat *, unsigned int, update_search_progress_cb, GObject *, size_t *);
+/* Libère la mémoire des gadgets trouvés pour du ROP. */
+void free_rop_list(found_rop_list *);
+
#endif /* _PLUGINS_ROPGADGETS_FINDER_H */