Commit Graph

368 Commits

Author SHA1 Message Date
Jonathon Reinhart
2c0556826f samples: remove (uint8_t*) casts to mem API calls
These casts are now unnecessary.
2015-09-07 13:09:05 -04:00
Jonathon Reinhart
f6cecf45d2 change mem read/write APIs to use void*
Don't force the user to use uint8_t pointers, or cast their
pointers-to-other-objects to uint8_t* when calling these APIs.
2015-09-07 12:44:03 -04:00
Nguyen Anh Quynh
2b4caeed37 regress: add shebang for arm_movr12_hang.py 2015-09-08 00:13:19 +08:00
Nguyen Anh Quynh
22dd0bd471 Merge pull request #115 from lunixbochs/master
add regression for #114
2015-09-08 00:04:12 +08:00
Ryan Hileman
c73149d581 add regression for #114 2015-09-07 08:57:28 -07:00
Nguyen Anh Quynh
9e4ed32e8a x86: handle SYSCALL even if there is no handler 2015-09-07 10:19:45 +08:00
Nguyen Anh Quynh
a166c24f8e x86: correct EIP of INT instruction by updating it only after calling interrupt handler 2015-09-06 14:58:11 +08:00
Nguyen Anh Quynh
cf00345d65 Merge pull request #112 from lunixbochs/master
update go bindings for type changes
2015-09-05 23:28:55 +08:00
Ryan Hileman
70c42731c2 update go bindings for type changes 2015-09-05 06:56:11 -07:00
Nguyen Anh Quynh
f9d8387175 update .gitignore 2015-09-05 11:26:39 +08:00
Nguyen Anh Quynh
99824e1d56 bindings: rename uchook to uc_hook, ucengine to uc_engine, uc_hook_t to uc_hook_type 2015-09-05 11:25:49 +08:00
Nguyen Anh Quynh
d1bdbd11e7 rename uchook to uc_hook, ucengine to uc_engine, uc_hook_t to uc_hook_type 2015-09-05 11:20:32 +08:00
Nguyen Anh Quynh
74c069dc22 samples: cleanup & put mem_apis into sample_all.sh 2015-09-05 09:42:47 +08:00
Nguyen Anh Quynh
7b5bb95147 Merge branch 'master' of https://github.com/unicorn-engine/unicorn 2015-09-05 09:12:23 +08:00
Nguyen Anh Quynh
9a0bafb167 update CREDITS 2015-09-05 09:12:15 +08:00
Nguyen Anh Quynh
9cd82d26a4 Merge pull request #109 from cseagle/master
Added new sample for memory apis. Also fixes NX related constant comparison in cputlb.c
2015-09-05 09:11:36 +08:00
Nguyen Anh Quynh
bf3855d1b2 Merge pull request #110 from SeanHeelan/hook_mem_constants_documentation
Add clarity to the documentation of the UC_HOOK_MEM constants.
2015-09-05 09:05:18 +08:00
Sean Heelan
84a374e876 Merge remote-tracking branch 'upstream/master' into hook_mem_constants_documentation 2015-09-05 00:41:23 +07:00
Chris Eagle
cbf9885b85 clean up comiler warnings 2015-09-04 10:35:39 -07:00
Sean Heelan
41846af60a Add clarity to the documentation of the UC_HOOK_MEM constants.
The previous comments weren't explicit, in all cases, as to what the difference
(mapped versus unmapped) between the access types was.
2015-09-05 00:35:00 +07:00
Chris Eagle
0b676a82d4 Merge remote-tracking branch 'upstream/master' 2015-09-04 10:27:33 -07:00
Chris Eagle
e9c6b11506 add mem_api sample program and fix check for wrong NX related constant in cputlb.c 2015-09-04 10:27:03 -07:00
Nguyen Anh Quynh
8ae29a0b2a Merge branch 'master' of https://github.com/unicorn-engine/unicorn 2015-09-05 01:00:01 +08:00
Nguyen Anh Quynh
51a4fe0766 samples: cleanup shellcode.c 2015-09-05 00:59:53 +08:00
Nguyen Anh Quynh
bf1185e3ef Merge pull request #108 from fabsx00/master
Add UNICORN_QEMU_FLAGS
2015-09-05 00:01:07 +08:00
fabs
caad81e2da Add UNICORN_QEMU_FLAGS
Fixes #107
2015-09-04 17:56:29 +02:00
Nguyen Anh Quynh
8d725ba107 Merge pull request #106 from radare/fix-regress-build
Fix build of regress/
2015-09-04 22:37:16 +08:00
pancake
e89174c3f1 Fix build of regress/ 2015-09-04 07:56:35 -04:00
Nguyen Anh Quynh
bb27c4c6af Merge pull request #104 from cseagle/regress
Move mem_xxx samples to regress.
2015-09-04 16:08:00 +08:00
Chris Eagle
8cfd902e4b Move mem_xxx samples to regress. Add check to only flush tlb when unmapping if there is a current cpu 2015-09-04 00:48:24 -07:00
Nguyen Anh Quynh
d506b900eb cache the last entry of mapped blocks in memory_mapping() for better performance 2015-09-04 15:40:47 +08:00
Nguyen Anh Quynh
fabbc0f4dc Merge pull request #103 from cseagle/java_dev
Update with type safety changes and api additions
2015-09-04 15:29:30 +08:00
Chris Eagle
a53eae3a29 Merge branch 'master' into java_dev 2015-09-03 22:34:00 -07:00
Chris Eagle
b3b814e8b1 update java bindings for type safety and API changes 2015-09-03 22:28:09 -07:00
Nguyen Anh Quynh
06481933e0 typo 2015-09-04 11:56:14 +08:00
Nguyen Anh Quynh
022f8d82d1 handle memory fetch as invalid memory access. now we can also report error if exec memory is unmapped (UC_ERR_MEM_FETCH) 2015-09-04 11:55:17 +08:00
Chris Eagle
bae718274e Merge branch 'master' into java_dev 2015-09-03 20:30:31 -07:00
Nguyen Anh Quynh
84e3b5c897 cast all the values to write to registers in uc_reg_write() to unsigned type. this fixes issue #98 2015-09-04 11:17:08 +08:00
Nguyen Anh Quynh
2cdadf1720 regress: fix nr_mem_test.c and ro_mem_test.c to use modified UC_MEM_* enum 2015-09-04 11:04:13 +08:00
Nguyen Anh Quynh
7ceb2eb0b9 bindings: update constants after the recent changes in the core 2015-09-04 10:54:21 +08:00
Nguyen Anh Quynh
8618d00786 Merge branch 'change-handle-based-api' of https://github.com/JonathonReinhart/unicorn into JonathonReinhart-change-handle-based-api 2015-09-04 10:49:38 +08:00
Jonathon Reinhart
291ec98675 python: fix a couple more function signatures 2015-09-03 22:46:43 -04:00
Nguyen Anh Quynh
f2333e6c4a Merge branch 'change-handle-based-api' of https://github.com/JonathonReinhart/unicorn into JonathonReinhart-change-handle-based-api 2015-09-04 10:46:27 +08:00
Jonathon Reinhart
5f32e2c1ae s/uc_hook_h/uchook/g 2015-09-03 22:39:23 -04:00
Jonathon Reinhart
99e34d212a bring python bindings up-to-date with new API 2015-09-03 22:34:58 -04:00
Jonathon Reinhart
da46071c7d bring new code and samples up-to-date with API changes 2015-09-03 22:15:49 -04:00
Jonathon Reinhart
5e9d07a40a Merge remote-tracking branch 'upstream/master' into change-handle-based-api 2015-09-03 22:01:52 -04:00
Nguyen Anh Quynh
0962c4822b cleanup & update bindings' constants 2015-09-04 09:43:31 +08:00
Nguyen Anh Quynh
e54519c09f cleanup 2015-09-04 09:20:13 +08:00
Chris Eagle
2da46caef7 smooth out split_region related code 2015-09-03 12:26:36 -07:00