Commit graph

30250 commits

Author SHA1 Message Date
Khairul Azhar Kasmiran
8494ae3c47
Remove rz_list_iter_cur() (#5808)
* Remove rz_list_iter_cur()
* Remove `rz_list_delete(bp->traces, .)` comment
2026-01-17 14:29:50 +08:00
Arya H R
96f0c97bcc
Refactored output modes to use type RzOutputMode (#5750) 2026-01-17 14:29:20 +08:00
Rot127
3c44884a9b
Fix semantical IL bug of unconditional jumps executing NOP in delayed slot. (#5764) 2026-01-16 22:47:51 +08:00
Khairul Azhar Kasmiran
77b9282791
rz_assert: Show follow-up action in rz_return macros (#5804) 2026-01-16 21:11:59 +08:00
well-mannered-goat
5d688d799a
bin/elf: improve x86 family relocations handling (#5752)
* Patch more x86 relocations
* Add tests for x86 relocations
* Add handling and patching for more x86_64 relocations
2026-01-16 11:50:47 +08:00
Khairul Azhar Kasmiran
ebc49001c3
rz_assert: Restore control flow to rz_return assert-based macros (#5801) 2026-01-16 00:25:19 +08:00
Rot127
341e59a629
Fix error case of Hexagon asm/analysis plugin. (#5797)
Before it always returned a positive number,
even if the instruction didn't decode properly due to an error.
2026-01-15 23:38:11 +08:00
Ayush
0378d8f893
Fix memory leak in RzMagicLine: free test_string and name fields (#5782) 2026-01-15 13:37:04 +00:00
Zapper9982
6918e510bd
Add GNS1 binary format loader for C4000 baseband firmware (#5628) 2026-01-15 08:48:45 +00:00
Florian Märkl
c594b413ff
Swap argument order of rz_bv_copy* (#5793)
This brings these copy functions in line with the more common order of
dst, src as used in memcpy and rz_bv_*_inplace functions.
This is a breaking change and callers of rz_bv_copy() and
rz_bv_copy_nbits() must adjust to the new order.
2026-01-14 23:18:34 +08:00
Giovanni
5e4078f5f5
Fix LE calling rz_bin_reloc_free when list values are LE_reloc (#5795)
* Fix LE calling rz_bin_reloc_free when list values are LE_reloc
* Fix type in descriptions
2026-01-14 23:18:19 +08:00
Premade
39f3e9f312
shell: fix typo in drA command description (#5792) 2026-01-14 23:17:51 +08:00
Khairul Azhar Kasmiran
e737733460
rz_assert: Order macros consistently (#5786) 2026-01-14 22:24:47 +08:00
Naren Sirigere
ad5c36fa59
Added support for extended 6502 opcodes (#5748) 2026-01-14 11:18:43 +08:00
Rot127
f665dde999
Fix leak of data in get_call() (#5789) 2026-01-13 14:03:45 +00:00
Florian Märkl
328356f933
Fix color reset after afvl (variable display) (#5788)
ctx->func_var_addr may contain a color, which has to be reset after the
line has been printed.
2026-01-12 19:45:57 +01:00
Anton Angelov
602781b2dc
Implement rz_sys_backtrace() for Windows/MSVC (#5784)
* Implement rz_sys_backtrace for Windows/MSVC
* Add dbghelp.lib to dependency list
2026-01-13 00:55:20 +08:00
Rot127
c0817b895c
Always fallback to subproject if use_sys_pcre2 is unset. (#5787)
This should prevent dependency confusions if an OS
(FreeBSD in this case) has multiple different PCRE2 libraries.
2026-01-13 00:54:54 +08:00
Khairul Azhar Kasmiran
4092c26edd
rz_goto_if_fail: Make it a no-op under RZ_CHECKS_LEVEL 0 (#5783) 2026-01-12 18:25:26 +08:00
Giovanni
141f05b126
Remove rz_io_read_at and use only rz_io_read_at_mapped (#5777) 2026-01-11 22:50:50 +08:00
NOT XVilka
b1666054da
ci: fix AppVeyor VS2017 certificate error (#5763)
* ci: fix AppVeyor VS2017 certificate error
* ci: install Python 3.10 for AppVeyor VS2017 jobs

---------

Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
2026-01-11 21:36:02 +08:00
Giovanni
383636a5b2
Remove call of rz_io_nread_at from rz_arch (#5778) 2026-01-11 21:16:18 +08:00
Anton Angelov
c066d81d38
Revert changes for rz_read_be128 and rz_write_be128 (#5779) 2026-01-11 18:06:02 +08:00
Khairul Azhar Kasmiran
7c01de49d3
Set analysis.nopskip to false for fuzz tests (#5776) 2026-01-11 16:10:55 +08:00
Khairul Azhar Kasmiran
24983985f3
rz_assert: Add rz_break_if_reached/fail() (#5769) 2026-01-11 10:07:37 +08:00
Anton Angelov
d6524f7114
Use memcpy for endian read/write function for native endianness (#5757) 2026-01-11 00:21:43 +00:00
Anton Angelov
b2fb8bbec5
Improve performance of rz_bv_add_inplace() (#5751)
* Add rz_bv_add_inplace benchmark for 256-bit vectors

* Improve performance of rz_bv_add

* Simplify helper function and fix bug

* Minor changes
2026-01-11 00:14:19 +00:00
Giovanni
99b87b2023
Remove unused le_fixups (#5774)
* Remove unused le_fixups

* Fix missing free to list
2026-01-11 00:10:25 +00:00
Giovanni
41ea75d5b0
Fix wrong max count of chained segments. (#5770)
max_count should be nsegs but it must be limited to to what is allocated
2026-01-10 21:35:23 +08:00
Siddhartha Rajbongshi
7c1b965937
doc: fix various typos and documentation issues (#5771)
BUILDING.md: fix formatting and path typo
gdb.md: fix multiple grammatical errors and typos
siol.md: fix spelling errors
rzshell.md: fix grammar
debug-internals.md: remove internal notes and references to missing files
2026-01-10 21:33:54 +08:00
Giovanni
6dd0dba9ff
Cleanup egg code from unused code. (#5767) 2026-01-10 17:02:38 +08:00
Khairul Azhar Kasmiran
e07ddae375
rz_goto_if_fail: Add "jumping to ..." msg (#5766) 2026-01-10 14:51:49 +08:00
Maijin
d5fd613d9a
ci: ignore subprojects/packagefiles in codecov (#5765)
Co-authored-by: Maijin <maijin21@gmail.com>
2026-01-10 14:51:14 +08:00
Giovanni
6926b6a65d
Rewrite C compiler code for rz-gg (#5761) 2026-01-10 13:36:51 +08:00
Khairul Azhar Kasmiran
e4ed1d3436
Fix "exeeds" typo (#5760) 2026-01-09 21:26:26 +08:00
NOT XVilka
381c41cc86
analysis: better jump/switch tables debug logging (#5745) 2026-01-09 00:00:31 +08:00
Rot127
960dc17b23
util/bitvector: return successfully for bit vector shift of 0. (#5747)
The result of shift with 0 is perfectly well defined.
2026-01-08 23:27:38 +08:00
Rot127
4213ddfecc
Fix reachable invalid state, for bitvector in-place casts from large to large. (#5746) 2026-01-08 13:47:53 +00:00
Anton Angelov
7ebfa58fe2
analysis: fix case range display in disassembly #5731)
* Fix disassembly bug related to case range labels
* Fix another edge case issue and tests
* Fix 2 more bugs causing case indices to get discarded instead of displayed
* Fix tests
2026-01-07 23:56:22 +08:00
Maijin
797fcd0ff6
test: increase coverage for RzCons and its components (#5735)
- Added tests for Cons Canvas, Histogram, HUD, Pal, Pager, Pipe, RGB, HTML, Line.
- Fixed rz_str_ansi_filter null terminator bug.
- Refactored test_cons.c by splitting it into smaller files.
- Improved many existing assertions to verify actual output content.
- Restored mu_assert_notnull checks for better reliability.

Co-authored-by: Maijin <maijin21@gmail.com>
2026-01-07 12:27:45 +08:00
Rot127
26e87cbb79
librz/arch/sparc: fix leaks in the Sparc IL implementation. (#5740) 2026-01-07 12:26:50 +08:00
Rot127
a89bbe5cf2
librz/util: implement inplace rz_bv_div and rz_bv_mod. (#5742) 2026-01-07 12:26:06 +08:00
Maijin
c2349a9663
codecov: ignore examples and subprojects (#5743)
Co-authored-by: Maijin <maijin21@gmail.com>
2026-01-07 12:24:40 +08:00
Rot127
1128efc8ee
space: fix leak of Capstone handle and state. (#5738) 2026-01-07 01:03:44 +08:00
bubblepipe
912513fc6f
heap: refactor parser for jemalloc 4.5.0 (#5722)
* replace size_t -> GHT, ssize_t -> GHST, void * -> GHT
* delete subprojects/rzheap/rz_jemalloc/jemalloc_* as they are included inside subprojects/rzheap/rz_jemalloc/jemalloc.h
* macro wrapper for jemalloc code

tested working for arena_run_t

echo '#include <rz_heap_jemalloc.h>' | gcc -E -I librz/include -I subprojects/rzheap -I build -x c - 2>&1 | grep arena_run_t

* replace all struct definition t inside GH(t)\
\
DIR="subprojects/rzheap/rz_jemalloc/internal"
SYMBOLS="symbols"
while read -r type; do
    [ -z "$type" ] && continue
    echo "Replacing: $type -> GH($type)"
    perl -pi -e "s/(?<!GH\()(?<![A-Za-z_])${type}(?![A-Za-z_0-9])/GH(${type})/g" "$DIR"/*.h
done < "$SYMBOLS"
2026-01-07 00:24:12 +08:00
NOT XVilka
d9717c9933
core: remove legacy output mode for tasks cmds (#5737)
Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
2026-01-07 00:18:00 +08:00
Rot127
6936186c29
Replace legacy RZ_MODE_ enums with RZ_OUTPUT_MODE in legacy search. (#5734) 2026-01-06 02:44:10 +08:00
Maijin
a03e8ded3b
test: add tests for horizontal histogram ruler (p==) (#5709)
* test: Add tests for horizontal histogram ruler (p==)

Co-authored-by: Maijin <maijin21@gmail.com>
2026-01-06 00:30:08 +08:00
Giovanni
ea21a4a7b4
Implement colors for tables and move RzListInfo out of table.c (#5729) 2026-01-05 21:34:41 +08:00
Khairul Azhar Kasmiran
f935f96323
Update DEVELOPERS.md with REUSE.toml file (#5733) 2026-01-05 21:32:34 +08:00