summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/androhelpers/switch.c2
-rw-r--r--plugins/libcsem/exit.c2
-rw-r--r--plugins/ropgadgets/finder.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/androhelpers/switch.c b/plugins/androhelpers/switch.c
index 14a4562..f93c9e9 100644
--- a/plugins/androhelpers/switch.c
+++ b/plugins/androhelpers/switch.c
@@ -219,7 +219,7 @@ static void ensure_each_case_has_its_block(GArchInstruction *instr, GArchInstruc
if (prev != NULL
&& !g_arch_instruction_has_destinations(prev)
- && !g_arch_instruction_is_return(prev))
+ && !(g_arch_instruction_get_flags(prev) & AIF_RETURN_POINT))
{
g_arch_instruction_link_with(prev, instr, ILT_EXEC_FLOW, NULL);
}
diff --git a/plugins/libcsem/exit.c b/plugins/libcsem/exit.c
index fbe0923..1bb4edd 100644
--- a/plugins/libcsem/exit.c
+++ b/plugins/libcsem/exit.c
@@ -74,7 +74,7 @@ static void mark_one_kind_of_exit_as_return(const GLoadedBinary *binary, const c
{
if (types[i] != ILT_CALL) continue;
- g_arch_instruction_define_as_return(sources[i], true);
+ g_arch_instruction_set_flag(sources[i], AIF_RETURN_POINT);
}
diff --git a/plugins/ropgadgets/finder.c b/plugins/ropgadgets/finder.c
index ff0c6ad..a71dfb3 100644
--- a/plugins/ropgadgets/finder.c
+++ b/plugins/ropgadgets/finder.c
@@ -166,7 +166,7 @@ static GArchInstruction *look_backward_for_gadgets(const search_domain *domain,
/* S'il s'agit d'un point de retour, on laisse la main à une autre liste */
- if (g_arch_instruction_is_return(instr))
+ if (g_arch_instruction_get_flags(instr) & AIF_RETURN_POINT)
{
g_object_unref(G_OBJECT(instr));
instr = NULL;
@@ -258,7 +258,7 @@ static GArchInstruction **list_all_gadgets_in_domain(const search_domain *domain
/* A-t-on bien affaire à une instruction de retour ? */
- if (!g_arch_instruction_is_return(gadget))
+ if (!(g_arch_instruction_get_flags(gadget) & AIF_RETURN_POINT))
{
g_object_unref(G_OBJECT(gadget));
continue;