mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 11:35:32 +00:00
Merge pull request #166 from SeanHeelan/master
Regression test for issue #165
This commit is contained in:
commit
b0fa23ebe1
13
tests/regress/hook_add_crash.py
Executable file
13
tests/regress/hook_add_crash.py
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
"""https://github.com/unicorn-engine/unicorn/issues/165"""
|
||||||
|
|
||||||
|
import unicorn
|
||||||
|
|
||||||
|
def hook_mem_read_unmapped(mu, access, address, size, value, user_data):
|
||||||
|
pass
|
||||||
|
|
||||||
|
mu = unicorn.Uc(unicorn.UC_ARCH_X86, unicorn.UC_MODE_32)
|
||||||
|
|
||||||
|
for x in range(0, 1000):
|
||||||
|
mu.hook_add(unicorn.UC_HOOK_MEM_READ_UNMAPPED, hook_mem_read_unmapped, None)
|
Loading…
Reference in a new issue