Commit graph

30030 commits

Author SHA1 Message Date
Maijin
07d3a812f7
subprojects: update libzip 1.11.4 (#5701)
Update libzip to 1.11.4

---------

Co-authored-by: Maijin <maijin21@gmail.com>
2025-12-30 05:29:39 +08:00
Ayush Goyal
5d6f19579e
shell: colorize the ell command (#5687) 2025-12-30 04:32:39 +08:00
SSharshunov
fb4822d658
librz/util: new function rz_pvector_find_index (#5700) 2025-12-30 03:33:54 +08:00
Arya H R
a6edb4ecc5
Fix various Coverity findings (#5668) 2025-12-30 02:02:56 +08:00
Khairul Azhar Kasmiran
11ae0c9b23
Have only 1 def of rz_line_hist_sdb_up/down() (#5703) 2025-12-29 23:33:04 +08:00
Khairul Azhar Kasmiran
24f9e33db9
meson: Install man/rz-test.1 (#5697) 2025-12-28 23:24:00 +08:00
Khairul Azhar Kasmiran
2eac3fce25
Use macro versions of rz_list_iter_get_prev/next() instead (#5696)
* Add rz_list_safe_prev/next macros
* Remove rz_list_iter_get_prev/next() functions
* Use rz_list_safe_prev() macro instead of rz_list_iter_get_prev() function
* Use rz_list_safe_next() macro instead of rz_list_iter_get_next() function
2025-12-28 21:05:49 +08:00
مصطفي محمود كمال الدين
ba9ebe7934
asm: fix NULL reference when calling uninitialized cpu descriptions getter (#5677) 2025-12-28 15:09:16 +08:00
Khairul Azhar Kasmiran
bd29b70793
Touch up rz_list_find() doc (#5693) 2025-12-27 22:38:52 +08:00
Ayush
1ae879fe49
Added tests for wai command (#5674) 2025-12-27 22:34:24 +08:00
Giovanni
5ef76f42b8
Fix small mistake on x509 structure. (#5690)
* Fix small mistake on x509 structure.
* Add test with ed25519 certificate
2025-12-27 19:00:27 +08:00
Khairul Azhar Kasmiran
edfe7d3380
rz_list_contains: Return bool instead of iter (#5692) 2025-12-27 18:59:36 +08:00
Ayush
a1966469df
Add rz_analysis_function_set_cc to set the calling convention (#5675) 2025-12-27 18:45:40 +08:00
Khairul Azhar Kasmiran
80f357dc4c
rz_list_(delete/find)_val: Rename ptr to val in C header decl (#5691) 2025-12-27 16:50:17 +08:00
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