ed9164e47a
The C function uc_mmio_map() allows to add seperate callback functions and userdata for read and write. When the callback functions are NULL unicorn don't try to call this functions. Previous this patch, when i.e. read_callback was None the callback was set to mmio_read_callback_proxy and the userdata was set to NULL. On a callback the mmio_read_callback_proxy then tried to dereference the userdata and caused a segfault. fixes #1762 |
||
---|---|---|
.github/workflows | ||
bindings | ||
docs | ||
glib_compat | ||
include | ||
msvc | ||
qemu | ||
samples | ||
tests | ||
.clang-format | ||
.gitignore | ||
.gitmodules | ||
AUTHORS.TXT | ||
Brewfile | ||
bundle_static.cmake | ||
Cargo.toml | ||
ChangeLog | ||
CMakeLists.txt | ||
COPYING | ||
COPYING_GLIB | ||
COPYING.LGPL2 | ||
CREDITS.TXT | ||
format.sh | ||
go.mod | ||
list.c | ||
mingw-w64.cmake | ||
README.md | ||
SECURITY.md | ||
symbols.sh | ||
TODO | ||
uc.c |
Unicorn Engine
Unicorn is a lightweight, multi-platform, multi-architecture CPU emulator framework, based on QEMU.
Unicorn offers some unparalleled features:
- Multi-architecture: ARM, ARM64 (ARMv8), M68K, MIPS, PowerPC, RISCV, SPARC, S390X, TriCore and X86 (16, 32, 64-bit)
- Clean/simple/lightweight/intuitive architecture-neutral API
- Implemented in pure C language, with bindings for Crystal, Clojure, Visual Basic, Perl, Rust, Ruby, Python, Java, .NET, Go, Delphi/Free Pascal, Haskell, Pharo, and Lua.
- Native support for Windows & *nix (with Mac OSX, Linux, Android, *BSD & Solaris confirmed)
- High performance via Just-In-Time compilation
- Support for fine-grained instrumentation at various levels
- Thread-safety by design
- Distributed under free software license GPLv2
Further information is available at http://www.unicorn-engine.org
License
This project is released under the GPL license.
Compilation & Docs
See docs/COMPILE.md file for how to compile and install Unicorn.
More documentation is available in docs/README.md.
Contact
Contact us via mailing list, email or twitter for any questions.
Contribute
If you want to contribute, please pick up something from our Github issues.
We also maintain a list of more challenged problems in milestones for our regular release.
CREDITS.TXT records important contributors of our project.