testing/rizin-0.3.1 version bump
A new release of Rizin is here, v0.3.0! This release has taken a bit longer than expected, but a lot of things have been done since the last release, including our first GSoC in the Rizin project. Look at our blogpost to know more about GSoC 2021.
Below we would like to give you a glimpse at what we did, but be aware this is only a small fraction of the changes. You should look at our git history to see everything. Some of our work directly improves our users' experience, while others is more under the hood work, though we are sure it ultimately improves the experience of using and developing Rizin as well.
Keep reading for some highlights of this new release.
New RzType module: We moved all the types related functions from the RzAnalysis module to a new separate module: RzType. Instead of using a custom stripped-down version of the TinyCC, RzType parses C code by using a grammar defined with Tree-Sitter. RzType parser and loader now better validates types, which allowed us to fix several mistakes in the shipped type libraries for Linux, MacOS, and Windows. When a type is unknown or it is a typedef/atomic type without an underlying specification you may also find the special new type
unknown_twhich is an integer of the current file/platform word size. This new module allows us to better use types in several places of Rizin, Cutter and rz-ghidra!
- SPDX headers: All files have been marked with SPDX headers that will help you and us check what kind of code we ship, which licenses, copyrights, etc.. Checks are in place in CI to ensure that all files will have SPDX headers going forward.
rz-diff hexadecimal view: We rewrote big parts of rz-diff tool to remove the dependency on the
git diffbinary, optimize diffing functions and provide a new hexadecimal diffing view through the new
Shell new behavior: Rizin can now be started without any argument and it won't open any file, allowing you to later open a binary with
ocommand as usual. We switched the behavior of
=when starting Rizin, to better match what Linux users expect from a tool:
-now reads the binary from stdin, while
=now opens a malloc-ed file in memory. Try things with
Global variables: So far you could only define variables local to a function (see
afvcommands), but we are now introducing global variables that can be defined at any fixed address with a given type. See
avg?to see how to handle them. This is still a very early concept, but we plan to use them more and more for disassembly printing, analysis, in Cutter, and in rz-ghidra. They are going to replace the “type link” function you may know under the
ELF parsing: Code for ELF parsing has been heavily refactored and adjusted to make better use of dynamic info provided in segments instead of relying on untrusted sections. Few new variables have been introduced to alter how ELF files should be parsed and validated, see
el elf. Support for DT_HASH and DT_GNU_HASH allows to determine more accurately the number of symbols in the dynamic symbol table. As one of the results of this work, a known anti-analysis technique that tries to hide used symbols is now defeated by Rizin.
No more io.cache required to apply relocations: It was common in Rizin to get warning messages telling you to enable
io.cacheto fix binary relocations. We think that was unnecessary and wrong in concept as well. With this new release, the most relevant binary plugins were refactored to provide a list of mappings together with changes that should be applied on top, making relocations patching very easy and transparent for the end user. You will not have to set any particular variable nor will you see changes applied by Rizin itself mixed with changes you, as a user, did to the binary.
Commands ported to Rizin shell: Several commands were ported to Rizin unified shell, making them more consistent and easy to use. These commands have an automatically generated help, their arguments can be wrapped in quotes like you do in bash and they integrate better with Rizin. Some of those commands are:
- Project migration: With the first release of Rizin we mentioned our new project implementation which would allow our users to keep using older projects as they update their Rizin tools. Even though we are not at release 1.0.0 we already implemented project migrations that automatically update your old projects as you load them! Please report any issue you find with this, so that by the release 1.0.0 we can deliver something as stable as possible!
- Support for multidex APK files: Initial work to support multidex APK
rz-hash: Code related to
rz-hashwas heavily refactored and it now supports loading of large files as well as HMAC combined with any hash algorithm.
Fix debugger in static build: The statically compiled rizin binary provided with last release was not able to debug other binaries, due to it being compiled on Alpine and the code using the ptrace API with the wrong types of arguments.
FLIRT decompression: Did you know you could load IDA FLIRT signatures files in Rizin with the
zfcommands? Now we support z-lib compressed FLIRT signatures as well, so try to load your FLIRT database with Rizin.
Ports: Added CI jobs for NetBSD and Linux PowerPC - all tests pass, various fixes for HaikuOS, DragonFlyBSD.
- Add pid/pidfile on man/rz-run and make a pid option a boolean
rax -tnot considering GMT argument
- Fixed 'Ctrl+Arrow' and 'Alt+Arrow' in rizin shell
- Fix integer overflow and excessive memory usage in jump table analysis
- Fix infinite loop if first case of switch table points to same block
- Fix some NULL derefs in Windows Debugger
- Removed junk on screen in visual mode with two columns
shm_open()function with Meson
- Haiku OS and DragonflyBSD build fixes
- PE header parsing fixes when opened through
- Added CRC32 and entropy values in
- Fix NULL pointer dereference due missing
small_blockmethod when OpenSSL is used.
- Fix potential buffer overflow in RC2 hash
- Move TSLanguage initialization into new
- [DEX] remove bottleneck on
- Fix invalid
vcommand resulting in black screen
- Add few missing Windows types
- Fix rotating colors with
Cin visual mode
- Fix #1864 (closed): Find
main()of Fedora 35 x86_64
- Use empty dependencies to avoid comparing different types (Meson 0.60 compatibility)
- [Debug] Let gdb attach regularly and reset reason after attach
- Enable flushing for
- Provide API for calculating sections digests
- Move files to generate windows installer under