Commit graph

30219 commits

Author SHA1 Message Date
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
dependabot[bot]
7bac9f75fa
build(deps): bump actions/download-artifact from 7 to 8 (#5985)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 7 to 8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v7...v8)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '8'
  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-03-07 17:23:25 +08:00
dependabot[bot]
59cb7a8338
build(deps): bump actions/upload-artifact from 6 to 7 (#5986)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v6...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-03-07 17:21:07 +08:00
Farhan Saiyed
e4464a1c55
blake2 hash support (#5995) 2026-03-06 22:17:59 +08:00
Anton Angelov
d6f278e1a5
Enable SSE2 on targets where it's supported (#5990) 2026-03-04 23:54:18 +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
Twilight
3da3a22603
refactor: add enum vairables in TUI define.c (#5959) 2026-03-04 12:30:34 +08:00
مصطفي محمود كمال الدين
fe2891edb4
librz/bin/elf: use a macro that won't be removed in release builds (#5989) 2026-03-04 12:23:47 +08: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
Anton Angelov
5a2e57b828
Use rz_read_le instead of memcpy in rz_default_hash_string() (#5983) 2026-03-02 16:59:28 +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
Thomas Strömberg
a65be1e6cd
Fix Illumos/Solaris platform support (#5972) 2026-02-27 13:01:40 +08: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
مصطفي محمود كمال الدين
8d459b218d
librz/bin: fix patching relocations for RISC-V ELFs
* fix unused return value in patch_relocs_riscv and unreachable code in extension parser
2026-02-26 12:17:03 +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
Naren Sirigere
ab82fc9fa3
Add SerenityOS Support (#5905)
* Add serenity to librt whitelist

This patch adds serenity to the list of operating systems that dont require librt to be explicity linked

* Disable PCRE2 JIT compilation

* Remove resolve_heap_tcache implementation

Serenity doesn't implement thread caching in its memory allocator, so tcache resolution is not applicable.

* Define rz_sys_pipe as pipe2 for serenity

* Add serenity identifier to rz_types.h

Define serenity as __UNIX__ like, and set RZ_SYS_OS to 'serenity' if __serenity__ identifier is defined

* Add zlib dependency for libzip
2026-02-23 16:34:05 +00:00
Giovanni
17e19ac887
Log an error when endianness change is not compatible with arch (#5945) 2026-02-23 11:06:41 +08:00
Rot127
42dbdd7900
Fix meson build warning about empty config data. (#5957) 2026-02-22 21:10:09 +00:00
Farhan Saiyed
88d861db6f
librz/bin: fix missing strings in izx output (#5950) 2026-02-23 00:53:46 +08:00
Thiago Mucci
71640c8cdd
fix(io): unify R! command usage formatting (#5954) 2026-02-23 00:01:33 +08:00
StefBisti
176c071603
Add amiga hunk format support (#5911) 2026-02-22 22:07:09 +08:00
billow
2718026d27
Update libdemangle to revision 2d1d726 (#5949) 2026-02-21 03:15:18 +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
Giovanni
1e33f52ed3
Fix demangler meson.build (#5942) 2026-02-19 16:40:13 +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
Ayush
3db19a4c30
librz/bin/wasm: fix memory leaks. (#5941) 2026-02-19 12:03:46 +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
مصطفي محمود كمال الدين
6a9eef646a
build: split tricore and riscv build condition Meson 2026-02-18 11:47:15 +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
Khairul Azhar Kasmiran
93ace74a55
Remove ASAN debug test fail->broken conversion (#5923) 2026-02-15 15:42:15 +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