Skip to content

Commit 4a694d8

Browse files
committed
remove semicolons
1 parent d4b9248 commit 4a694d8

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

bindings/python/sample_x86.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def hook_code(uc, address, size, user_data):
3636
def hook_code64(uc, address, size, user_data):
3737
print(">>> Tracing instruction at 0x%x, instruction size = 0x%x" %(address, size))
3838
rip = uc.reg_read(UC_X86_REG_RIP)
39-
print(">>> RIP is 0x%x" %rip);
39+
print(">>> RIP is 0x%x" %rip)
4040

4141

4242
# callback for tracing invalid memory access (READ or WRITE)

bindings/python/shellcode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def read_string(uc, address):
7474
def hook_intr(uc, intno, user_data):
7575
# only handle Linux syscall
7676
if intno != 0x80:
77-
print("got interrupt %x ???" %intno);
77+
print("got interrupt %x ???" %intno)
7878
uc.emu_stop()
7979
return
8080

tests/regress/hang.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def hook_intr(uc, intno, user_data):
1919
# only handle Linux syscall
2020
rip = uc.reg_read(UC_X86_REG_RIP)
2121
if intno != 0x80:
22-
print("=== 0x%x: got interrupt %x, quit" %(rip, intno));
22+
print("=== 0x%x: got interrupt %x, quit" %(rip, intno))
2323
uc.emu_stop()
2424
return
2525

tests/regress/hook_readonly_write_local.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
def hook_mem_read(uc, access, address, size, value, data):
1414
print("Reading at " + str(address))
15-
uc.mem_write(address, CODE);
15+
uc.mem_write(address, CODE)
1616

1717
class REP(regress.RegressTest):
1818

@@ -21,7 +21,7 @@ def test_rep(self):
2121

2222
mu.mem_map(0, PAGE_SIZE)
2323
mu.mem_write(0, CODE)
24-
mu.mem_map(ACCESS_ADDR, PAGE_SIZE, UC_PROT_READ);
24+
mu.mem_map(ACCESS_ADDR, PAGE_SIZE, UC_PROT_READ)
2525
mu.hook_add(UC_HOOK_MEM_READ, hook_mem_read, begin = ACCESS_ADDR, end = ACCESS_ADDR + PAGE_SIZE)
2626

2727
mu.emu_start(0, len(CODE))

tests/regress/jmp_ebx_hang.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ def runTest(self):
1818
# If EBX is zero then an exception is raised, as expected
1919
mu.reg_write(unicorn.x86_const.UC_X86_REG_EBX, 0x0)
2020

21-
print(">>> jmp ebx (ebx = 0)");
21+
print(">>> jmp ebx (ebx = 0)")
2222
with self.assertRaises(UcError) as m:
2323
mu.emu_start(CODE_ADDR, CODE_ADDR + 2, count=1)
2424

2525
self.assertEqual(m.exception.errno, UC_ERR_FETCH_UNMAPPED)
2626

27-
print(">>> jmp ebx (ebx = 0xaa96a47f)");
27+
print(">>> jmp ebx (ebx = 0xaa96a47f)")
2828
mu = unicorn.Uc(UC_ARCH_X86, UC_MODE_32)
2929
mu.mem_map(CODE_ADDR, 1024 * 4)
3030
# If we write this address to EBX then the emulator hangs on emu_start

0 commit comments

Comments
 (0)