Willi Ballenthin
f02d03dde3
add hook_code_stop_emu.py test for issue #232
2015-11-02 09:54:36 -05:00
Nguyen Anh Quynh
3a36e327ab
support memory redirection, so the issue #217 is fixed
2015-10-27 14:37:03 +08:00
Nguyen Anh Quynh
cea1cf210d
tests: mips_kseg0_1.c prints out friendly error message rather than just error code
2015-10-27 12:36:03 +08:00
Nguyen Anh Quynh
7553c9c1c2
tests: add mips_kseg0_1 to Makefile to compile it
2015-10-27 11:25:34 +08:00
Nguyen Anh Quynh
05d89da496
Merge pull request #222 from pkooiman/master
...
Test for executing from MIPS kseg0/kseg1 memory ranges
2015-10-27 08:44:32 +08:00
Peter Kooiman
0bad2a8a90
Added test for executing from MIPS kseg0/ksegq1 memory ranges to tests/regress
2015-10-26 18:37:27 +01:00
gaffe
21ce78924c
assert that PC was changed in callback-pc test
2015-10-23 11:28:10 -07:00
Nguyen Anh Quynh
dfc8658083
regress: fix compilation warning of mem_double_unmap.c
2015-10-23 11:36:09 +08:00
coco
dd56621bbb
fix for use after free in case of double unmap
2015-10-21 22:25:49 +02:00
Nguyen Anh Quynh
b1d41d414b
on some hook events, uc_hook_add() should not allow more than 1 handler. this add UC_ERR_HOOK_EXIST error type
2015-10-10 18:01:47 +08:00
Sean Heelan
bb4011efe2
Regression test for issue #165
2015-10-06 12:55:09 +07:00
Nguyen Anh Quynh
9410b8fbe7
regress: add shebang for ensure_typedef_consts_generated.py
2015-10-04 11:21:37 +08:00
Sean Heelan
fd6b510038
Added a comment explaining what is being tested for
2015-10-03 12:36:17 +07:00
Sean Heelan
f62418fc07
Regression test for issue #161
2015-10-03 12:22:41 +07:00
Nguyen Anh Quynh
9e64cba6ec
Rename some hook related enums:
...
- UC_ERR_READ_INVALID -> UC_ERR_READ_UNMAPPED
- UC_ERR_WRITE_INVALID -> UC_ERR_WRITE_UNMAPPED
- UC_ERR_FETCH_INVALID -> UC_ERR_FETCH_UNMAPPED
- UC_MEM_READ_INVALID -> UC_MEM_READ_UNMAPPED
- UC_MEM_WRITE_INVALID -> UC_MEM_WRITE_UNMAPPED
- UC_MEM_FETCH_INVALID -> UC_MEM_FETCH_UNMAPPED
- UC_HOOK_MEM_READ_INVALID -> UC_HOOK_MEM_READ_UNMAPPED
- UC_HOOK_MEM_WRITE_INVALID -> UC_HOOK_MEM_WRITE_UNMAPPED
- UC_HOOK_MEM_FETCH_INVALID -> UC_HOOK_MEM_FETCH_UNMAPPED
- UC_HOOK_MEM_INVALID -> UC_HOOK_MEM_UNMAPPED
This also renames some newly added macros to use _INVALID postfix:
- UC_HOOK_MEM_READ_ERR -> UC_HOOK_MEM_READ_INVALID
- UC_HOOK_MEM_WRITE_ERR -> UC_HOOK_MEM_WRITE_INVALID
- UC_HOOK_MEM_FETCH_ERR -> UC_HOOK_MEM_FETCH_INVALID
- UC_HOOK_MEM_ERR -> UC_HOOK_MEM_INVALID
Fixed all the bindings Java, Go & Python.
2015-09-30 14:46:55 +08:00
Nguyen Anh Quynh
4a42041a83
handle 'bad ram pointer' case. this fixes issue #159
2015-09-29 18:22:22 +08:00
Nguyen Anh Quynh
976950d3c3
chmod +x tests/regress/bad_ram.py
2015-09-29 15:24:30 +08:00
mothran
0e258b9587
updated a few small errors in the script
2015-09-28 22:50:27 -07:00
mothran
eeebcc5a44
added bad_ram regress
2015-09-28 21:41:38 -07:00
Nguyen Anh Quynh
8b4d274c34
regress: convert some mips tests to use unittest
2015-09-28 11:57:24 +08:00
Nguyen Anh Quynh
2b0b4169bc
mips: advance PC for SYSCALL instruction. this fixes issue #157
2015-09-28 10:58:43 +08:00
Ryan Hileman
13be3435c9
add regress for #157
2015-09-27 01:08:46 -07:00
Nguyen Anh Quynh
53ce8f217d
mips: handle delay slot better for branch instructions. this should fix issue #155
2015-09-27 15:05:40 +08:00
Ryan Hileman
4b42b4be52
add regress for #155
2015-09-26 12:48:25 -07:00
Nguyen Anh Quynh
90eb8f2e72
This commit continues the PR #111
...
- Allow to register handler separately for invalid memory access
- Add new memory events for hooking:
- UC_MEM_READ_INVALID, UC_MEM_WRITE_INVALID, UC_MEM_FETCH_INVALID
- UC_HOOK_MEM_READ_PROT, UC_HOOK_MEM_WRITE_PROT, UC_HOOK_MEM_FETCH_PROT
- Rename UC_ERR_EXEC_PROT to UC_ERR_FETCH_PROT
- Change API uc_hook_add() so event type @type can be combined from hooking types
2015-09-24 14:18:02 +08:00
Nguyen Anh Quynh
14a01b5186
mips: handle delay slot so do not duplicate calling instruction handler. this fixes issue #133
2015-09-22 11:59:53 +08:00
danghvu
3c1d65ea66
Reorganize test directories
2015-09-21 20:47:45 -05:00