Skip to content

Commit

Permalink
Fix ARM32 -> ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
twizmwazin committed Oct 31, 2023
1 parent b85c790 commit 010bfdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_lift.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_skipstmts_toomanyexits(self):
"3069C059B4C93049B4E9350ABCDF834C1CDF83CE185E8030094"
"E803004B9683E8030015A94498C4F7E2EA "
)
arch = pyvex.ARCH_ARM32_LE
arch = pyvex.ARCH_ARM_LE
# Lifting the first four bytes will not cause any problem. Statements should be skipped as expected
b = IRSB(bytes_[:34], 0xC6951, arch, opt_level=1, bytes_offset=5, skip_stmts=True)
assert len(b.exit_statements) > 0
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pyvex.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_irsb_empty(self):
self.assertRaises(Exception, pyvex.IRSB, data="", arch=pyvex.ARCH_AMD64, mem_addr=0)

def test_irsb_arm(self):
irsb = pyvex.IRSB(data=b"\x33\xff\x2f\xe1", mem_addr=0, arch=pyvex.ARCH_ARM32_BE)
irsb = pyvex.IRSB(data=b"\x33\xff\x2f\xe1", mem_addr=0, arch=pyvex.ARCH_ARM_BE)
assert len([i for i in irsb.statements if type(i) == pyvex.IRStmt.IMark]) == 1

def test_irsb_popret(self):
Expand Down

0 comments on commit 010bfdb

Please sign in to comment.