unicorn/samples
lazymio 225d387325
Fix wrong sync after UC_ERR_[READ, WRITE, FETCH]_[UNMAPPED, PROT] (#1368)
* Fix wrong sync after UC_ERR_[READ, WRITE, FETCH]_[UNMAPPED, PROT]

Note that:
1. We only guarantee the pc (and other internal states) is correct
if and only of `uc_emu_start` returns without any error (or errors
have been handled in callbacks.).
2. If memory read/write error isn't handled by hooks, the state is
undefined and the pc is probably wrong if no hook is installed.

This fixes #1323.

* Rename variables

* Add note in unicorn.h

* Refine test_i386_invalid_mem_read_in_tb
2021-05-12 00:10:45 +08:00
..
.gitignore samples: more flexible .gitignore 2016-06-16 09:23:00 +08:00
Makefile Fuzz (#1000) 2018-08-29 10:36:23 +08:00
mem_apis.c Fixed some conflicts 2017-01-23 11:35:00 +11:00
sample_all.sh Added arm64eb sample to sample_all.sh script (#809) 2017-04-25 13:42:13 +08:00
sample_arm.c The UC instance must be created twice to reproduce the problem (#1382) 2021-04-10 03:30:24 +08:00
sample_arm64.c Fixed register mistake in comments (#894) 2017-09-17 16:40:01 +07:00
sample_arm64eb.c arm64eb: arm64 big endian also using little endian instructions. (#816) 2017-05-04 20:00:48 +08:00
sample_armeb.c update armeb & arm64eb samples 2017-04-25 12:55:26 +08:00
sample_batch_reg.c Fixed some conflicts 2017-01-23 11:35:00 +11:00
sample_m68k.c Fixed some conflicts 2017-01-23 11:35:00 +11:00
sample_mips.c Fixed some conflicts 2017-01-23 11:35:00 +11:00
sample_sparc.c Fixed some conflicts 2017-01-23 11:35:00 +11:00
sample_x86.c Fix wrong sync after UC_ERR_[READ, WRITE, FETCH]_[UNMAPPED, PROT] (#1368) 2021-05-12 00:10:45 +08:00
sample_x86_32_gdt_and_seg_regs.c fixed leaks in test cases (#1247) 2020-05-02 18:18:18 +08:00
shellcode.c Fixed some conflicts 2017-01-23 11:35:00 +11:00