mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 08:31:16 +00:00
Merge pull request #67 from SeanHeelan/master
Added a regression script for issue #65
This commit is contained in:
commit
07b9cd15b1
11
regress/emu_stop_segfault.py
Executable file
11
regress/emu_stop_segfault.py
Executable file
|
@ -0,0 +1,11 @@
|
|||
"""See https://github.com/unicorn-engine/unicorn/issues/65"""
|
||||
|
||||
import unicorn
|
||||
ADDR = 0x10101000
|
||||
mu = unicorn.Uc(unicorn.UC_ARCH_X86, unicorn.UC_MODE_32)
|
||||
mu.mem_map(ADDR, 1024 * 4)
|
||||
mu.mem_write(ADDR, b'\x41')
|
||||
mu.emu_start(ADDR, ADDR + 1, count=1)
|
||||
# The following should not trigger a null pointer dereference
|
||||
mu.emu_stop()
|
||||
|
Loading…
Reference in a new issue