Permalink
Browse files

Added test for Emulator memory_read_string method

  • Loading branch information...
1 parent 85040a2 commit 1e473ecb6a48bd3b74c561fe92189ceda65ad0ea @buffer committed May 23, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/cpu_mem_test.py
View
@@ -98,4 +98,8 @@
block = emulator.memory_read_block(eip, 4)
print '0x' + ''.join(["%02x" % ord(x) for x in block[::-1]])
+emulator.memory_write_dword(emulator.cpu_reg32_get(i), 0x00414243)
+s = emulator.memory_read_string(emulator.cpu_reg32_get(i), 4)
+print s
+
print emulator.env_w32_hook_check()

0 comments on commit 1e473ec

Please sign in to comment.