Skip to content

Commit

Permalink
add test for arm thumb pie
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninja3047 committed Feb 13, 2024
1 parent dd824d5 commit a3ee2f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@ def test_insert_instruction_patch(self):
expected_returnCode=0,
)

def test_insert_instruction_pie_patch(self):
instrs = """
mov r7, 0x1
mov r0, 0x32
svc 0
"""
self.run_one(
"printf_pie",
[InsertInstructionPatch(0x51E, instrs)],
expected_returnCode=0x32,
)

def test_insert_instruction_patch_2(self):
instrs = """
mov r7, 0x1
Expand Down
Binary file added tests/test_binaries/armhf/printf_pie
Binary file not shown.

0 comments on commit a3ee2f5

Please sign in to comment.