Commit graph

30316 commits

Author SHA1 Message Date
Rot127
d260e00c52
Document and explain ownership of the RzILMem buffer. (#5658) 2025-12-27 02:47:15 +08:00
Anton Kochkov
e96b1ad95f debug: remove globals from XNU native debugger 2025-12-27 02:46:55 +08:00
Giovanni
fc6b1fe0b5
librz/arch: Remove globals from or1k, ppc and pyc (#5684)
* Remove global vars from librz/arch/p/analysis/analysis_or1k.c
* Remove global from librz/arch/p/analysis/analysis_ppc_cs.c
* Remove global from asm_pyc.c and refactor pyc implementation.
2025-12-27 01:36:20 +08:00
Khairul Azhar Kasmiran
35a9dfbefc
NetBSD: Upgrade to Python 3.10 (#5686) 2025-12-27 00:02:58 +08:00
Khairul Azhar Kasmiran
c93841de48
Remove rz_list_split() and rz_list_split_iter() (#5678)
* Remove rz_list_split() and rz_list_split_iter()
* Add RZ_OWN tag to rz_list_delete()
2025-12-26 22:32:24 +08:00
Naren Sirigere
64f0e31a4a
librz/arch/pyc: add Python 3.14 support (#5662) 2025-12-25 22:06:37 +08:00
Arya H R
de5464698b
dietline: Ctrl+G for the soft escape from backward search (#5667) 2025-12-25 22:05:35 +08:00
Ayush
33fa2954e2
shell: add docs, tests, and fix filtering for /Rk command (#5623)
* Add documentation and test for /Rk command
* Implement constraint filtering for /Rk command

- Add constraints field to RzRopSearchContext
- Pass parsed constraints from handler to search context
- Implement match_rop_constraint() and match_constraints() in rop.c
- Filter gadgets based on user constraints in process_disassembly()
- Add tests for /Rk filtering (eax=1, ecx=0, multiple constraints)

* Update test/db/cmd/cmd_rop
2025-12-25 22:04:05 +08:00
Ayush
85b9f51e7d
visual: fix Vv mode theme refresh (#5665) 2025-12-25 22:03:02 +08:00
Khairul Azhar Kasmiran
c1fc1419e4
Rename some rz_list funcs to rz_list_XXX_val (part 1) (#5671)
* Rename rz_list_find_ptr() to rz_list_find_val()
* Rename rz_list_delete_data() to rz_list_delete_val()
2025-12-25 22:01:49 +08:00
مصطفي محمود كمال الدين
10042e41f7
refactored 2 enum constants in rz_analysis.h (#5666) 2025-12-24 09:41:30 +08:00
Anton Angelov
55ab9659a9
Analysis support for GCC's __gnu_thumb1_case_uqi jump tables on ARM / Thumb-1 (#5659) 2025-12-24 09:41:02 +08:00
Anton Kochkov
2574cbf50a ci: fix Travis CI dr tests 2025-12-23 11:56:04 +04:00
Rot127
472819aa92
librz/util: add in-place bitvector operations (#5569)
* Add an in-place addition of bitvectors.

* Decouple _elem_len from assumption it has just enough bytes to hold len in bits.

* Add in-place copy of bits.

* Use default copy bits bitvector function.

* Mark stack allocated bit vector.

* Add inplace variant of complement_1

* Implement inplace bitvecotr not.

* Add inplace variant of rz_bv_and

* Implement inplace variant of rz_bv_or

* Implement inplace variant of rz_bv_xor

* Constify rz_bv_lsb/msb

* Implement inplace variant of rz_bv_neg

* Fix inplace add. Add inplace SUB

* Remove prefix

* Remove invalid const

* Implement in-place casting of bit vectors.

* Add a hash test

* Fix unnecessary &

* Prevent OOB reads & writes by copying only the minimum of bytes.

* Add inplace MUL

* Add ble version for bitvector set/get with bytes.

* Add documentation for inplace bitvector functions.

* Add bench of add/sub() and sub/add_inplace().

* Remove rz_bv_copy_nbits_inplace because it was the same as rz_bv_copy_nbits.
2025-12-23 13:56:06 +08:00
Anton Kochkov
f94add3f6e ci: fix BSD dr tests 2025-12-22 20:49:26 +04:00
Arya H R
3a02c84fca
shell: dr command multi registers handling (#5638) 2025-12-22 23:17:10 +08:00
Ayush
0e6f75574a
Fix memory leaks in test_rop_constraint.c (#5661) 2025-12-22 14:14:13 +08:00
Giovanni
99c1a22d69
Extend ASN.1/PKCS7/X.509 to dump structures (#5656) 2025-12-22 09:41:56 +08:00
Peiwei Hu
8ca45d1ea5
Fix the missing release of RZ_OWN parameters (#5641) 2025-12-21 13:48:48 +08:00
Rot127
232e2a1be3
Fix another edge case of Hexagon IL lifting. (#5645)
If a packet was pushed out of the cache, it can be decoded as invalid, although it is valid.
Then it is marked as such according to some heuristic.
But the get_pkt_op parameter was not set in this case, which further down let
the plugin return an EMPTY() effect.
2025-12-20 15:27:34 +00:00
Khairul Azhar Kasmiran
1a843a832e
Add rz_util/rz_pkcs8.h to librz/include/meson.build (#5655) 2025-12-20 21:46:59 +08:00
Khairul Azhar Kasmiran
b96202ad48
Rename rz_list_first() / rz_list_last() to rz_list_first_val() / rz_list_last_val() (#5654) 2025-12-20 17:08:59 +08:00
Giovanni
f2f26b4466
Add pF8 for decoding PKCS8 & add info on /cm (#5647) 2025-12-20 16:28:10 +08:00
Ayush
a546f1b946
Fix double-free in byte_pattern_search error handling (#5653) 2025-12-20 15:22:50 +08:00
Giovanni
0a0e6c0b88
Optimize queue to act also as proper channel (#5627) 2025-12-20 00:40:13 +08:00
jaredbee
77c63ce77c
Handle R_AARCH64_TLSDESC without emitting an error (#5612)
This removes the "unimplemented" error message when encountering this particular relocation type.  R_AARCH64_TLSDESC is handled by the dynamic linker; we intentionally do very little to handle it.

Co-authored-by: Jared B <JaredB@invalid.invalid>
2025-12-19 15:18:57 +00:00
Khairul Azhar Kasmiran
981780600e
Rename rz_str_len_utf8_ansi() to rz_str_utf8_ansi_cols() (#5649) 2025-12-19 23:01:24 +08:00
Peiwei Hu
060507196e
Clarify the ownership of the parameters of rz_search_collection_new (#5640) 2025-12-19 14:02:36 +08:00
Rot127
83a8c21394
Add name getter for RzIL effects. (#5643) 2025-12-19 03:11:01 +08:00
Peiwei Hu
12e26c839f
Clarify the ownership of the parameters of rz_il_value_new_* (#5639)
* Clarify the ownership of the parameters of the function rz_il_value_new_*

* fixup! Clarify the ownership of the parameters of the function rz_il_value_new_*
2025-12-18 18:01:48 +00:00
Ayush
00e5b28e3e
Fix memory leaks in ROP constraint parsing functions (#5635) 2025-12-18 23:45:07 +08:00
Peiwei Hu
595be1780c
Fix multiple memory leaks (#5636) 2025-12-18 14:23:48 +00:00
Arya H R
b07369ab12
shell: axtl command to show reference context (#5611) 2025-12-18 05:23:13 +08:00
Khairul Azhar Kasmiran
f32b7cda01
rz_str_utf8_cols: Add human emoji to TODO list (#5630) 2025-12-17 23:17:24 +08:00
dependabot[bot]
4ec88d6869
build(deps): bump actions/download-artifact from 6 to 7 (#5625)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/download-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>
2025-12-17 22:33:06 +08:00
dependabot[bot]
1e6df11aae
build(deps): bump actions/upload-artifact from 5 to 6 (#5624)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  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>
2025-12-17 22:32:31 +08:00
Giovanni
ed11a8fd2d
Fix broken build on cs4 & cs5 (#5629) 2025-12-17 02:45:31 +08:00
Khairul Azhar Kasmiran
1cdb88be5a
Rename rz_str_len_utf8() to rz_str_utf8_cols() (#5626)
* Rename rz_str_len_utf8() to rz_str_utf8_cols()
* Rename utf8strlen0() to utf8strcols0()
2025-12-16 20:09:39 +08:00
Giovanni
69e0914237
Convert opex to use RzStructuredData (#5613) 2025-12-16 15:21:44 +08:00
Rot127
092dc95446
Fix reading from cache in rz_io_nread_at(). (#5618)
The cache read must read within the mapped region and not beyond.
Otherwise it would go against the documentation of rz_io_nread_at().
rz_io_cache_read() internally doesn't know about map boundaries so
the length parameter passed to it in rz_io_nread_at()
should only read 'ret' number of bytes.

To give somewhat more introspective what rz_io_cache_read() does,
the return value meaning was changed to success/failure
and an out parameter was added to get the number of bytes read.
2025-12-16 03:00:09 +08:00
Maijin
3cd0d5d640
doc(sign): improve README and add examples (#5620)
Co-authored-by: Maijin <maijin21@gmail.com>
2025-12-16 02:57:59 +08:00
bubblepipe
0321748674
librz/arch: add analysis plugin for MCS96 (#5622) 2025-12-16 00:09:37 +08:00
Rot127
b58e9a6a4a
ci: lsan - wrap git command into try block for debugging (#5595) 2025-12-16 00:08:44 +08:00
Zapper9982
fe14cdf1b5
rz-find: add -V (verbose) CLI flag (#5621) 2025-12-15 16:49:53 +08:00
Maijin
d28ddde0e7
doc(syscall): improve README and add example (#5135) (#5619)
Co-authored-by: Maijin <maijin21@gmail.com>
2025-12-15 14:02:55 +08:00
Maijin
129903687e
doc(hash): improve README and add example (#5135) (#5614)
Improved `librz/hash/README.md` documentation to accurately reflect API usage, specifically `RzHash` vs `RzHashCfg`. Added a working C example `examples/api/hash/md5.c` demonstrating proper initialization and hashing workflow.
2025-12-14 02:39:34 +08:00
Giovanni
0c45176648
librz/arch: add xcore support (#5617)
* Add proper xcore support
* Add check on nullptr for language
2025-12-14 02:38:45 +08:00
Peiwei Hu
728b7bec9a
Fix: multiple memory release issues (#5616) 2025-12-13 22:14:50 +08:00
Rot127
2e63297dd2
Fix leak of asmop tokens. (#5615) 2025-12-13 22:14:35 +08:00
bubblepipe
a259b15960
librz/arch/mcs96: add missing ISA variants 8096/80C196/80C296 support (#5577) 2025-12-13 01:37:12 +08:00