mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-25 23:28:06 +00:00
696c58f9f0
The following code segfaults: unicorn.Uc(unicorn.UC_ARCH_X86, unicorn.UC_MODE_64).emu_stop() Tested under Linux and OS X.
13 lines
314 B
Python
Executable file
13 lines
314 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
import regress
|
|
import unicorn
|
|
|
|
|
|
class SegfaultOnStop(regress.RegressTest):
|
|
def test(self):
|
|
unicorn.Uc(unicorn.UC_ARCH_X86, unicorn.UC_MODE_64).emu_stop()
|
|
self.assertTrue(True, "If not reached, then we have a crashing bug.")
|
|
|
|
if __name__ == '__main__':
|
|
regress.main()
|