Commit graph

30433 commits

Author SHA1 Message Date
Florian Märkl
1cb5859f8e Apply patches/fix_zydis_amalgamated_riscv32_build to subproject
We already vendor a patched zydis and this fix should be available to
everyone, not only CI.
2026-05-11 11:54:02 +08:00
bubblepipe
22edb366ef
analysis: fix data in K64F-RIOT-SPI.elf not marked properly (#6331) 2026-05-11 02:39:48 +08:00
NOT XVilka
decf3ba29c
test: fix avr/c166 detection test on SystemZ (#6333) 2026-05-11 02:37:52 +08:00
Giovanni
ebc586a5e2
Improve mips args & prelude detection (#6320) 2026-05-10 22:32:23 +08:00
SSharshunov
df8d022ab8
test: fix avr/c166 test on big endian machine (#6329) 2026-05-10 21:40:53 +08:00
Michal Ambroz
d3a51fd7b0
Fix s390x build without debugger (#6316)
* Fix s390x build without debugger

From: Andreas Schneider <asn@cryptomilk.org>
Date: Wed, 23 Apr 2026 11:35:00 +0200
Subject: [PATCH] Fix s390x link error when debugger is disabled

When the debugger is disabled (-Ddebugger=false), debug_native.c is not
compiled, so rz_debug_get_tls() and rz_debug_native_threads() are never
defined. However, linux_heap_glibc.c (part of librz_core) calls both
functions unconditionally, causing a link failure on s390x.

Add stub implementations in debug.c guarded by #if !DEBUGGER so the
symbols are always present in librz_debug regardless of the debugger
option.

* Fix formatting

---------

Co-authored-by: Giovanni <561184+wargio@users.noreply.github.com>
2026-05-10 18:55:47 +08:00
SSharshunov
fe524a30e8
librz/bin: fix the false-positive detection of the C166 bins as AVR bins 2026-05-10 03:37:19 +08:00
bubblepipe
48d9f725fb
Mark bytes as data and show as such in disassembly if referenced as DATA (#6307) 2026-05-09 23:29:10 +08:00
bubblepipe
a8429853d0
Add analysis pass to make avgl command show global variables (#6306) 2026-05-09 14:29:46 +08:00
Khairul Azhar Kasmiran
bc2ee4c1f8
test: make consistent sysz regs test output (#6326) 2026-05-08 22:33:00 +08:00
Khairul Azhar Kasmiran
cbe820a2e0
log.level help: Don't show 0:DEBUG on Release builds (#6319)
* log.level help: Don't show `0:DEBUG` on Release builds
* Use `choco install python310` instead
2026-05-07 22:33:46 +08:00
Riccardo Schirone
4fe99052f4
build: propagate OpenSSL in CMake exports (#6284)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: NOT XVilka <notxvilka@proton.me>
2026-05-06 10:04:34 +00:00
Naren Sirigere
519cef51a5
librz/arch: check if M680X HSC12X/RS08 is present in Capstone (#6318) 2026-05-06 11:53:40 +08:00
Florian Märkl
8a187c0176
Remove RzConfig.lock and re-introduce rz_config_lock for compatibility (#6315)
rz_config_lock() is still in use by some external plugins. It should be
removed completely once plugins have migrated to the new API.
For now, it is a no-op to not break compilation of plugins.
2026-05-05 23:40:28 +08:00
billow
d4ff5b7f95
librz/arch: fix m68k CPU32 detection with Capstone v6 (#6314)
Co-authored-by agent: Codex/GPT-5
2026-05-05 23:39:52 +08:00
Naren Sirigere
00b8496bf0
librz/arch: add RS08 and HCS12X as new M680X CPU types (#5977) 2026-05-05 23:35:15 +08:00
billow
4e7c9af04c
Update capstone for M68k (#6309)
* Bump capstone to the latest next
* Add capstone M68k changes
* Update M68k instruction size and fix tests
* Add M68K assembly instruction definitions for 68000, 68020, 68030, 68060, and CPU32
* Update maxopsz to 22 for bflt, hunk, and smd formats
* Add M68k ELF coredump parsing support
2026-05-05 03:16:53 +08:00
Alok Kumar Mishra
8c099f2c5e
tui: build filtered panel commands dynamically (#6221)
* build filtered panel commands with dynamic string growth
* build filtered panel cmds with RzStrBuf
2026-05-04 23:24:22 +08:00
Giovanni
2f0dcd65b2
Revert "Implement Pool Node allocation for RzList (#6203)" (#6313)
This reverts commit d3a97d5ef8.
2026-05-04 22:45:00 +08:00
well-mannered-goat
76a41c8166
Fetch the addends from the relocation position in REL types of object files (#6112) 2026-05-04 21:53:59 +08:00
Florian Märkl
0de6c3e849 Fix build with debugger=false option 2026-05-04 06:22:00 +02:00
Florian Märkl
3a1d72406e Fix build on sparc64 and ppc
Dynamic endian checking can't be used in RZ_SYS_ENDIAN because its value
is used in the preprocessor. When __BYTE_ORDER__ is not available, as is
the case on OpenBSD/sparc64, we fall back to big endian.
2026-05-04 06:22:00 +02:00
Florian Märkl
bc22b44549 Replace strnlen calls
Non-C-standard strnlen is not available on Mac OS X 10.5
2026-05-04 06:22:00 +02:00
Khairul Azhar Kasmiran
b5be64f6df
Remove rz_range (#6303) 2026-05-03 20:10:35 +08:00
Giovanni
bd44250fd6
Add new implementation of RzConfig (#5820) 2026-05-03 15:34:48 +08:00
Farhan Saiyed
d3a97d5ef8
Implement Pool Node allocation for RzList (#6203) 2026-05-03 08:52:31 +08:00
Riccardo Schirone
17c3cd898a
Remove unused xnu_native_hwstep_enable implementations (dead code) (#6300) 2026-05-03 07:39:45 +08:00
Khairul Azhar Kasmiran
af6dade945
elf: Simplify phdr checking code (#6302) 2026-05-02 18:53:53 +08:00
Khairul Azhar Kasmiran
c1e26fee02
librz/bin: add more ELF header warning detail (#6301) 2026-05-02 16:43:28 +08:00
Riccardo Schirone
056bb141a9
debug: make xnu attach idempotent for di (#6295) 2026-05-02 14:43:53 +08:00
Cheese Cake
a99cc738c2
util: extend string search with user-defined printable characters (#6161)
* util: extend string search with user-defined printable characters
* util: use RzVector for user_unprintable options
* util: address review for configurable unprintable chars
* core/cconfig: use goto error_free pattern in cb_str_unprintable
* test/cmd_search_z: merge duplicate Armenian utf16le tests
2026-05-01 22:47:14 +08:00
Khairul Azhar Kasmiran
c3e24708a0
rz-bindgen: Test with rz-test (#6299) 2026-05-01 12:44:05 +08:00
Mohammed Muqeet Us Salam
9007cde56e
librz/bin: fix regstate load in ELF corefiles for x86_64 (#6195)
* regstate retrieval in ELF corefiles
* remove rzbin call from cmd_debug
* increase FP_LAYOUT to 128
2026-05-01 12:07:59 +08:00
Florian Märkl
245e198cf1
RzReg: Associate roles with RzRegItem instead of name strings (#6291)
Register roles (RzRegisterId) are now associated directly with an
RzRegItem in RzReg rather than mapping to name strings, which previously
needed an additional hashtable lookup to get more information about the
register. Conversely, if the name is needed from an RzRegItem, it is
available directly as a member.

This is not a pure refactor as there were cases before where a register
name was assigned to a role in the register profile, but no register
actually existed under that name. Such cases will now cause a warning to
be printed during profile load and the role association will be ignored.
Changes in register profiles in this commit are for fixing such cases.
2026-04-30 12:03:51 +02:00
Giovanni
9d5dc6edd1
Cleanup luac code (#6298) 2026-04-30 16:57:47 +08:00
dependabot[bot]
5e3aa1d870
build(deps): bump actions/cache from 4 to 5 (#6262)
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-29 22:16:35 +08:00
dependabot[bot]
39f35bde00
build(deps): bump softprops/action-gh-release from 2 to 3 (#6228)
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2 to 3.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v2...v3)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-29 21:19:12 +08:00
dependabot[bot]
a22005b009
build(deps): bump actions/upload-artifact from 4 to 7 (#6229)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-28 23:11:27 +08:00
Giovanni
6b9cfea04c
Fix qnx out of bound reads and writes. (#6292) 2026-04-28 12:16:34 +00:00
bubblepipe
dcc825da7b
librz/bin: ELF coredump parsing support for LoongArch (#6273) 2026-04-28 02:34:37 +08:00
bubblepipe
1ef81fb956
librz/bin: ELF coredump parsing support for s390x (#6271) 2026-04-27 22:22:08 +08:00
bubblepipe
7d2386227d
librz/bin: ELF coredump parsing support for RISC-V (#6266) 2026-04-27 12:08:58 +08:00
Rot127
82f028018a
Fix rz_vector_set() behavior to match the rz_pvector version one. (#6274)
* Fix rz_vector_set() behavior to match the rz_pvector version one.
* Use existing vector functions for setting elements.
2026-04-26 22:20:22 +08:00
مصطفي محمود كمال الدين
29b04fa460
librz/debug: native debugger plugin for RISC-V (#5966)
* added breakpoints and stepping

* add link register to allow single-stepping a ret instruction, fix stacktraces
* refactor to avoid passing the IO layer structs to the breakpoint function
* add tests, refine the stacktrace to not include non-function
* add register information for core file parsing
* core file generation for RISC-V
* make tests run under riscv-64
* make tests run under riscv-32
2026-04-26 16:28:07 +08:00
Khairul Azhar Kasmiran
241a9f1321
tools/rz: Revert weird-looking test (#6288)
* tools/rz: Revert weird-looking test
* Do `dos2unix` on whole file
2026-04-26 16:25:56 +08:00
Riccardo Schirone
26ef17ad2e
librz/debug: fix coredump creation on macOS
* librz/debug: fix coredump creation on xnu
* librz/debug: fix numbers of vmmap entries in xnu
* test/db/archos/darwin-arm64: add coredump test
2026-04-26 16:25:24 +08:00
Riccardo Schirone
0e9c6346c8
librz/io: fix book link in io_mach (#6285) 2026-04-26 09:36:41 +08:00
Farhan Saiyed
2d2e47c751
Optimize tests for db/formats (#6051) 2026-04-25 12:59:03 +08:00
MrQuantum1915
23fa936ace
ROP search - fix stack change calculation, use BV subtraction (#6242) 2026-04-25 03:41:05 +08:00
MrQuantum1915
3a86aba0ee
Fix ROP search test failure on big endian machines 2026-04-25 03:40:15 +08:00