Skip to content

Commit

Permalink
stalker-arm: fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
s1341 committed Feb 13, 2024
1 parent 7f428e8 commit 96481a0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/core/arch-arm/stalker-arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3236,7 +3236,7 @@ TESTCODE (arm_simple_call,

TESTCASE (arm_transformer_should_be_able_to_replace_call_with_callout)
{
guint32 code[CODE_SIZE (arm_simple_call) / sizeof (guint32)], val;
guint32 code[CODE_SIZE (arm_simple_call) / sizeof (guint32)];

memcpy (code, arm_simple_call, CODE_SIZE (arm_simple_call));

Expand All @@ -3251,8 +3251,6 @@ replace_call_with_callout (GumStalkerIterator * iterator,
GumStalkerOutput * output,
gpointer user_data)
{
gint * num_cmp_callouts = user_data;
GumMemoryAccess access;
const cs_insn * insn;

while (gum_stalker_iterator_next (iterator, &insn))
Expand All @@ -3277,7 +3275,7 @@ TESTCODE (arm_simple_jumpout,

TESTCASE (arm_transformer_should_be_able_to_replace_jumpout_with_callout)
{
guint32 code[CODE_SIZE (Arm_simple_jumpout) / sizeof (guint32)], val;
guint32 code[CODE_SIZE (arm_simple_jumpout) / sizeof (guint32)];

memcpy (code, arm_simple_jumpout, CODE_SIZE (arm_simple_jumpout));

Expand All @@ -3292,8 +3290,6 @@ replace_jumpout_with_callout (GumStalkerIterator * iterator,
GumStalkerOutput * output,
gpointer user_data)
{
gint * num_cmp_callouts = user_data;
GumMemoryAccess access;
const cs_insn * insn;

while (gum_stalker_iterator_next (iterator, &insn))
Expand Down

0 comments on commit 96481a0

Please sign in to comment.