Commit graph

2644 commits

Author SHA1 Message Date
Giovanni
d2494fac4a
librz/bin/{coff,ecoff}: fix various Coverity issues (#6023)
* Fix Coverity issues on ecoff
* Fix Alpha bitness
* Fix memleak in coff.c
* Fix tests
2026-03-13 00:44:59 +08:00
NOT XVilka
6c77211f44
librz/arch: remove unused ESIL remnants from Dalvik (#6024)
Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
2026-03-12 03:07:07 +08:00
Giovanni
70fdd67278
Allow rizin tools to run as standalone binaries (#6011)
* Implement TOOL/ENVS/EXIT_STATUS for rz-test

* update readme
2026-03-11 16:24:23 +00:00
Anton Angelov
98670969eb
Build the benchmarks as part of the CI (#5965)
* Build the benchmarks as part of 'linux-meson-gcc-tests' step
* Fix bench_il build error
* Add macro to avoid compiler optimization on benchmarked code
* Fix incorrect format specifier
* Cast to uint64_t
2026-03-08 13:15:18 +08:00
Anton Angelov
f6651af904
librz/util: new CTZ implementation (#5963) 2026-03-08 03:18:07 +08:00
Ayush
5fab5584e2
librz/bin: add CaRT container format support (#5964)
* Add CaRT extractor plugin
* Update cmd_list expected output for CaRT extractor plugin

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-03-07 20:51:50 +08:00
Farhan Saiyed
e4464a1c55
blake2 hash support (#5995) 2026-03-06 22:17:59 +08:00
Ehab-24
d1b628b0a6
fix use-after-free in txl command (#5980)
* fix use-after-free in txl command

* add cmd_txl test

---------

Co-authored-by: Rot127 <45763064+Rot127@users.noreply.github.com>
2026-03-04 14:33:08 +00:00
Suleif
5897f30c25
Fix a buffer overflow in gdbr_parse_processes_xml (#5973)
* Fix a buffer overflow in gdbr_parse_processes_xml, and added a regression test for it
2026-03-04 01:27:08 +08:00
Ayush
6880cb44f7
add iH support for for bf (#5943) 2026-03-02 16:44:26 +08:00
Anton Angelov
95f94ae258
refactor: SwissTable implementation for ht (#5860)
* Add ht benchmarks
* Initial implementation
* Finalize native per-group lookup support
* Lookup SSE2 implementation
* Improve hashing
* Add support for custom elem_size
* Avoid double h2 hashing when reserving slot
* Make custom elem_size support conditional
* Fix issues with bitwise and default lookup implementations
* Implement deletion trick optimization
* Track growth_size instead of deleted_slots
* Refactor SDB to access ht via API instead of internals
* Modify SDB tests which rely on hashtable order
* Fix SDB build warnings
* Fix bug with finding next power of two
* foreach_kv to return a bool result
* Change SDB diff order expected by serialize_analysis unit test
* Fix bug in the bitwise lookup implementation
* Remove second call to rz_core_init() which causes memory leaks
* Update some regression tests to accept reordered output
* Adapt ht clear to new implementation
* Use fini_kv_pair and fix 1 potential leak on malloc failure
* Fix cmd/types test after merge
* Avoid second call to calsize_key and avoid iter leaks on malloc failure
* Improve hash distribution
* Extend benchmark suite
* Fix bug with string hashing
* Branchless write to mirrored ctrl bytes
* Simplify string hash and remove potential UB
* Move RZ_PREFETCH macro to rz_types.h
* Add SSE2 discovery in Meson
* Forward SDB string hash function to ht string hash
* Try to revert test_cpu_profiles() to avoid relying on a baked SDB file
* Revert SDB/CDB hash function change
* Fix SDB reference to HT hash function instead of CDB hash
* Change calloc to malloc
* Avoid storing/checking key_len and key_value if they are ut64
* Improve string hash function
* Rename default hash functions
* Improve bench code
* linter.yml: set clang-path to point to llvm-18
2026-03-02 12:31:35 +08:00
Ehab-24
492addb3a1
Enc: add unicode case mappings (#5956) 2026-03-01 15:06:28 +00:00
Giovanni
00fba1dd53
Add support to MIPS & Alpha ECOFF 32/64 (#5447) 2026-02-28 23:37:55 +08:00
Ashish Kumar
732a5d6185
librz/hash: Add sha3 (incl. keccak) support (#5886) 2026-02-28 20:16:13 +08:00
Rot127
ec02889e9c
RzIL: Hash Pure variable names to make them more suitable as hash table keys. (#5971)
* Pre-compute DJB2 hash of VAR name for internal hash map key usage.

* IL VARS hash: Hash variable name.

* Add tests
2026-02-27 11:51:35 +00:00
Khairul Azhar Kasmiran
f319ce1dff
Implement afv- * (#5969) 2026-02-26 20:46:36 +08:00
NOT XVilka
2b163fa69b
Revert "Revert back linux-x64 dbg tests to Ubuntu 24.04 (20260201) (#5948)" (#5967)
This reverts commit 2eb28f9cce.

Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
2026-02-26 12:42:14 +08:00
مصطفي محمود كمال الدين
3112994017
RISCV: Make analysis function set mnemonic field to enable ROP search (#5952)
* Make analysis function set mnemonic field to enablre ROP search
* Add tests
2026-02-26 12:17:46 +08:00
Ehab-24
09cab090f6
RziL: fix incorrect naming of fabs as fpos (#5955)
* rzil: fix incorrect output

* update test cases
2026-02-25 16:04:45 +00:00
Ayush
d6b5340cda
librz/bin: add iH header printing support for CGC format (#5962) 2026-02-25 21:12:40 +08:00
Giovanni
17e19ac887
Log an error when endianness change is not compatible with arch (#5945) 2026-02-23 11:06:41 +08:00
Farhan Saiyed
88d861db6f
librz/bin: fix missing strings in izx output (#5950) 2026-02-23 00:53:46 +08:00
StefBisti
176c071603
Add amiga hunk format support (#5911) 2026-02-22 22:07:09 +08:00
Khairul Azhar Kasmiran
2eb28f9cce
Revert back linux-x64 dbg tests to Ubuntu 24.04 (20260201) (#5948) 2026-02-20 21:00:38 +08:00
Farhan Saiyed
90573979f2
test: add unit test for read_*_leb128() functions (#5931) 2026-02-20 04:24:59 +08:00
Giovanni
7f55442dc2
Fix endianness issues on s390x (#5940)
* Refactor of bflt to guess arch & fix m68k code
* Fix endianness issues
* Always cleanup at the end on travis ci
2026-02-19 23:13:18 +08:00
billow
b4ca5641e6
Update libdemangle (#5850)
* Update libdemangle to revision 37f9e9e
* Fix: C++ demangler plugin definition
* Fix: update tests
2026-02-19 12:20:29 +08:00
Naren Sirigere
ddc361ceba
librz/arch: fix 6808 naming and add CPU aliases for 6802, 6803, 6808 (#5939) 2026-02-19 00:54:35 +08:00
Giovanni
4c3230cfa4
test: remove test_auto_analysis.c as incorrect (#5934)
* Remove wrong and broken test that never worked.
2026-02-17 22:38:03 +08:00
Giovanni
693dff153b
Move arch config into function (#5902) 2026-02-17 18:19:40 +08:00
مصطفي محمود كمال الدين
158765163a
librz/arch: rewrite the RISC-V support to use Capstone (#5482)
* remove GNU plugin and remove the pseudo-assembly test
* modernize Capstone-based RISC-V plugin and add huge test coverage
2026-02-17 03:35:37 +08:00
Giovanni
719e410593
Refactor of SMD format (#5929) 2026-02-16 22:07:10 +08:00
Giovanni
31d21ea2fe
Fix h8300 cpu detection (#5925) 2026-02-16 21:40:02 +08:00
Farhan Saiyed
3a68ec601d
librz/bin: PEF support (#5921) 2026-02-16 14:43:27 +08:00
Giovanni
18c2985d28
librz/bin: refactor GameBoy binary parser (#5926) 2026-02-16 02:37:20 +08:00
Farhan Saiyed
ae8e7115bc
librz/bin: add iH header structure for WASM format (#5914) 2026-02-15 21:44:58 +08:00
Khairul Azhar Kasmiran
def5fbbce2
Update linux-x64 dbg tests to the Ubuntu 24.04 (20260209) image (#5924) 2026-02-15 17:47:02 +08:00
Jagath P
4dc8d92f5b
librz/bin: add iH header information to bFLT format (#5916) 2026-02-15 02:32:01 +08:00
Anton Angelov
9c7ecaf48d
Fix random leaks (#5920) 2026-02-14 15:46:43 +00:00
Farhan Saiyed
bdfe92ad74
librz/bin: add header information iH support for DEX (#5903) 2026-02-14 16:46:50 +08:00
Ayush
12037d6530
librz/bin: implement iH header info for AVR (#5917) 2026-02-14 16:33:08 +08:00
Premade
5f22d8b860
Add: API func to get xref comment at specific offset (#5910)
* Add `rz_core_get_xref_comment()`
* Add integration test
2026-02-14 13:38:54 +08:00
Ayush
15c9c1d8f0
Implement iH command for header output of PYC format (#5895) 2026-02-13 00:38:33 +08:00
Farhan Saiyed
150545d476
Xbe structure (#5887) 2026-02-13 00:25:15 +08:00
Anton Angelov
acd64a8802
Sort output of pfn, t and tf commands (#5907)
* Sort output of `pfn` and `t `cmds
* Fix test for `pfn`
* Sort output for `tf`
* Fix `t` and `tf` tests
2026-02-13 00:21:18 +08:00
Khairul Azhar Kasmiran
5a30814c6a
Fix duplicate "Dependency rzheap found" messages (#5908) 2026-02-12 21:52:11 +08:00
bubblepipe
7f57ae2c70
heap: refactor glibc heap parser (#5880) 2026-02-12 03:20:28 +08:00
Khairul Azhar Kasmiran
048c14653e
Fix test_vector_contains() test for s390x (#5904) 2026-02-11 23:55:07 +08:00
Rot127
d7111d056c
librz/util: add rz_vector_contains() and rz_vector_insert_sorted() (#5892)
* Add rz_vector_contains().
* Add rz_vector_insert_sorted().
* Pointer arithmetic fix for Windows.
2026-02-11 02:45:12 +08:00
Rot127
6a8d2ecf57
Check for empty vector to prevent OOB reads and writes. (#5591)
* Check for empty vector to prevent OOB reads and writes.

* Add tests to check for OOB reads/writes.
2026-02-10 16:57:12 +00:00