Commit Graph

45 Commits

Author SHA1 Message Date
c10639fd46 Bump version in bindings
Some checks failed
Crate 📦 Distribution / ${{ matrix.config.name }} (map[arch:x32 name:Windows x86 os:windows-latest]) (push) Has been cancelled
Crate 📦 Distribution / ${{ matrix.config.name }} (map[arch:x64 name:Ubuntu x86_64 os:ubuntu-latest]) (push) Has been cancelled
Crate 📦 Distribution / ${{ matrix.config.name }} (map[arch:x64 name:Windows x86_64 os:windows-latest]) (push) Has been cancelled
Crate 📦 Distribution / ${{ matrix.config.name }} (map[arch:x64 name:macOS x86_64 os:macos-latest]) (push) Has been cancelled
PyPI 📦 Distribution / ${{ matrix.config.name }} (map[arch:x32 name:manylinux2014_i686 os:ubuntu-latest python-ver:3.8]) (push) Has been cancelled
PyPI 📦 Distribution / ${{ matrix.config.name }} (map[arch:x32 name:win32 os:windows-latest python-ver:3.8]) (push) Has been cancelled
PyPI 📦 Distribution / ${{ matrix.config.name }} (map[arch:x64 name:macos_x86_64 os:macos-latest python-ver:3.8]) (push) Has been cancelled
PyPI 📦 Distribution / ${{ matrix.config.name }} (map[arch:x64 name:manylinux2014_x86_64 os:ubuntu-latest python-ver:3.8]) (push) Has been cancelled
PyPI 📦 Distribution / ${{ matrix.config.name }} (map[arch:x64 name:sdist os:ubuntu-latest python-ver:3.8]) (push) Has been cancelled
PyPI 📦 Distribution / ${{ matrix.config.name }} (map[arch:x64 name:win_amd64 os:windows-latest python-ver:3.8]) (push) Has been cancelled
Build UC2 / ${{ matrix.config.name }} (gcc, map[arch:x64 archiver:7z a artifact:windows_mingw32.7z build_type:Debug generators:Ninja mingw:MINGW32 mingw-arch:i686 name:windows-x64 MINGW32 os:windows-latest python-arch:x64 python-ver:3.8]) (push) Has been cancelled
Build UC2 / ${{ matrix.config.name }} (gcc, map[arch:x64 archiver:7z a artifact:windows_mingw64.7z build_type:Debug generators:Ninja mingw:MINGW64 mingw-arch:x86_64 name:windows-x64 MINGW64 os:windows-latest python-arch:x64 python-ver:3.8]) (push) Has been cancelled
Build UC2 / ${{ matrix.config.name }} (gcc, map[arch:x64 archiver:7z a artifact:windows_msvc64.7z build_type:Debug generators:Visual Studio 16 2019 msvc-arch:x64 name:windows-x64 MSVC 64bit os:windows-latest python-arch:x64 python-ver:3.8]) (push) Has been cancelled
Build UC2 / ${{ matrix.config.name }} (gcc, map[arch:x86 archiver:7z a artifact:windows_msvc32.7z build_type:Debug generators:Visual Studio 16 2019 msvc-arch:x86 name:windows-x86 MSVC 32bit os:windows-latest python-arch:x86 python-ver:3.8]) (push) Has been cancelled
Build UC2 / ${{ matrix.config.name }} - ${{ matrix.compiler }} (gcc, map[arch:x64 archiver:7za a artifact:macos-cmake-x64.7z build_type:Debug generators:Ninja name:macos-x64 cmake os:macos-latest python-arch:x64 python-ver:3.8]) (push) Has been cancelled
Build UC2 / ${{ matrix.config.name }} - ${{ matrix.compiler }} (gcc, map[arch:x86_64 archiver:7za a artifact:Android-x86_64.7z build_type:Debug generators:Ninja name:android cmake os:macos-11 python-arch:x86_64 python-ver:3.8]) (push) Has been cancelled
Build UC2 / ${{ matrix.config.name }} - ${{ matrix.compiler }} (gcc, map[arch:aarch64 archiver:7z a artifact:ubuntu-cmake-aarch64.7z build_type:Debug distro:ubuntu20.04 generators:Ninja name:ubuntu-aarch64 cmake os:ubuntu-latest python-arch:aarch64 python-ver:3.8]) (push) Has been cancelled
Build UC2 / ${{ matrix.config.name }} - ${{ matrix.compiler }} (gcc, map[arch:ppc64le archiver:7z a artifact:ubuntu-cmake-ppc64le.7z build_type:Debug distro:ubuntu20.04 generators:Ninja name:ubuntu-ppc64le cmake os:ubuntu-latest python-arch:ppc python-ver:3.8]) (push) Has been cancelled
Build UC2 / ${{ matrix.config.name }} - ${{ matrix.compiler }} (gcc, map[arch:x64 archiver:7z a artifact:ubuntu-cmake-x64.7z build_type:Debug generators:Ninja name:ubuntu-x64 cmake os:ubuntu-latest python-arch:x64 python-ver:3.8]) (push) Has been cancelled
Build UC2 / ${{ matrix.config.name }} - ${{ matrix.compiler }} (gcc, map[arch:x86 archiver:7z a artifact:ubuntu-cmake-x86.7z build_type:Debug generators:Ninja name:ubuntu-x86 cmake os:ubuntu-latest python-arch:x86 python-ver:3.8]) (push) Has been cancelled
PyPI 📦 Distribution / publish (push) Has been cancelled
2022-02-13 11:03:57 +01:00
mio
8b0285e135 Add python support for s390x 2022-01-01 00:58:10 +01:00
3184d3fcdf Update python bindings 2021-12-22 20:46:14 +01:00
db90f39ac6 Generate bindings 2021-11-04 20:01:19 +01:00
090686f8ed uc_ctl proposal (#1473)
* Add uc_ctl

* Add comments

* Slightly changed for bindings generation

* Generate bindings
2021-10-30 10:45:32 +08:00
e695686c15 Remove AFL Integration by reverting 2021-10-26 11:22:21 +02:00
f08b7d6b5b Make gen_const work and updates constants 2021-10-25 00:57:32 +02:00
aaaea14214 import Unicorn2 2021-10-03 22:14:44 +08:00
2874435d2f bump version to 1.0.3 2021-05-16 21:38:08 +08:00
21ec6e8f83 Add ARM BE8 support (#1369)
Co-authored-by: w4kfu <gw4kfu@gmail.com>
2021-03-31 21:22:35 +08:00
fbef45b18f remove UC_ERR_TIMEOUT, so timeout on uc_emu_start() is not considered error. added UC_QUERY_TIMEOUT to query exit reason 2020-05-24 23:54:45 +08:00
b0d5837c61 bindings: add UC_ERR_TIMEOUT 2019-12-29 00:19:34 +08:00
naq
3b17db0d84 bindings: update after the last commit on adding ARM modes 2019-10-26 05:02:39 +08:00
07f94ad1fc Added an invalid instruction hook (#1132)
* first draft for an invalid instruction hook

* Fixed documentation on return value of invalid insn hook
2019-09-23 01:53:06 +08:00
3fdb2d2442 add architecture query (#842) 2017-05-21 09:47:02 +08:00
2e973a13f0 arm64eb: add support for ARM64 big endian. 2017-04-24 23:30:01 +08:00
5dbc640b9a bump UC_VERSION_EXTRA to 1 2017-04-20 14:14:24 +08:00
7a1930a879 add UC_VERSION_{MAJOR, MINOR, EXTRA} 2016-10-25 14:37:47 +08:00
4083b87032 add new hook type UC_HOOK_MEM_READ_AFTER, adapted from PR #399 by @farmdve. updated all bindings, except Ruby & Haskell 2016-10-22 11:19:55 +08:00
9a2a5b15d8 Rename unhandled CPU exception 2016-07-05 11:10:39 -05:00
9cdca5a32b Unhandled interrupt will halt execution 2016-07-04 17:07:57 -05:00
2031f7cbdd [query] update bindings UC_QUERY_PAGE_SIZE
Signed-off-by: Nicolas PLANEL <nplanel@redhat.com>
2016-03-04 15:54:24 +11:00
0822c0af85 bump API version to 1.0 2016-02-11 08:05:15 +08:00
a2ef52172c add combination hook type UC_HOOK_MEM_VALID to intercept all valid memory access 2016-01-31 13:12:34 +08:00
9ec2163571 bindings: add UC_MODE_PPC32 constant after recent update on unicorn.h 2016-01-24 20:50:26 +08:00
6f3d48077e rename UC_QUERY_ARM_MODE to a more generic name UC_QUERY_MODE. make all bindings support this new constant 2016-01-24 01:08:23 +08:00
d79925f477 sparc: add SPARC32 mode (= UC_MODE_32) 2016-01-23 10:48:18 +08:00
ca79d11211 bindings: update constants after recent changes in unicorn.h 2016-01-23 10:31:16 +08:00
2f297bdd3a handle some errors properly so avoid exit() during initialization. this fixes issue #237 2015-11-12 01:43:41 +08:00
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
7e7c6512f5 add composite const generator (fix #161) 2015-10-03 10:41:19 -07:00
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
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
75c5904ec1 Makes the hook types consistent, with a single indicator for each of
read, write and fetch.

This commit only adds the enum values. The functionality still has to be
updated.

As per issue #111
2015-09-22 12:26:01 +07:00
39ac1bcb4e rename UC_ERR_INVAL to UC_ERR_ARG 2015-09-09 16:54:47 +08:00
d7ef204398 rename error codes ERR_MEM_READ, ERR_MEM_WRITE, ERR_MEM_FETCH 2015-09-09 16:25:48 +08:00
d3d38d3f21 handle read/write/fetch from unaligned addresses. this adds new error codes UC_ERR_READ_UNALIGNED, UC_ERR_WRITE_UNALIGNED & UC_ERR_FETCH_UNALIGNED 2015-09-09 15:52:15 +08:00
7a5d790ade rename UC_MEM_EXE to UC_MEM_FETCH 2015-09-08 12:55:56 +08:00
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
7ceb2eb0b9 bindings: update constants after the recent changes in the core 2015-09-04 10:54:21 +08:00
0962c4822b cleanup & update bindings' constants 2015-09-04 09:43:31 +08:00
15f6da1c3a bindings: update UC_MODE_BIG_ENDIAN after the change in the core 2015-08-29 15:10:33 +08:00
fcd0d02bae python: udpate binding after the last change on uc_mem_map() API 2015-08-29 13:17:50 +08:00
8aba3170c6 bindings: update consts after the latest change in the core 2015-08-29 09:03:12 +08:00
40ba1ea1b0 improve const generator; emit unicorn.h consts 2015-08-28 07:32:25 -07:00