Commit graph

30250 commits

Author SHA1 Message Date
Arya H R
ec7f117c2f
shell: new /Rgl cmd to show detailed list of ROP gadgets (#5663) 2026-01-05 04:04:22 +08:00
Anton Angelov
8341909b93
Motorola SREC IO plugin: fix multiple bugs (#5726)
* Fix multiple bugs
* Add srec write test
* Use PFMTxxx defines
2026-01-04 15:58:50 +08:00
Giovanni
384bebe3d0
Make AI guidelines more visually noticeable (#5727) 2026-01-04 15:49:04 +08:00
well-mannered-goat
5733f0509a
librz/bin/elf: fix and add new ARM32 relocations (#5455) 2026-01-03 20:22:37 +08:00
Khairul Azhar Kasmiran
2729fc1f1e
Use rz_goto_if_fail() for some code (#5721)
* Use rz_goto_if_fail() for some code
* Fix rz_goto_if_fail() for checks_level=3
2026-01-03 12:43:41 +08:00
Twilight
5927669e3a
Refactor visual classes mode to enum (#5719) 2026-01-03 04:58:51 +08:00
Giovanni
827a0ed1bb
Fix doxygen comments to use \<something> notation (#5720) 2026-01-02 19:05:37 +08:00
Khairul Azhar Kasmiran
37d2e2ff41
Readd deprecated rz_list_get_next() for rz-bindgen (#5718) 2026-01-01 23:54:53 +08:00
akshay
c6940c5764
doc: fix mandoc linter warnings in rizin.1 (#5670) 2026-01-01 11:00:15 +08:00
Ayush
bb70c1abf1
shell: update sort and uniq help to show piped input support (#5688)
* Update `sort` and `uniq` help to reflect piped input support
* Updated handlers to check `argc` before accessing `argv[1]`
2026-01-01 00:19:18 +08:00
Anton Angelov
03cd14c343
Return byte count instead of 0 on success (#5717) 2026-01-01 00:15:54 +08:00
Rot127
aad95fb2fd
shell: remove /cc command (#5716)
The command was untested. And while it still could be useful less code is probably better.
Additionally, finding collisions is a rather expensive problem,
better left to optimized algorithms and implementations.
2025-12-31 23:59:21 +08:00
Puneet Kumar
0f0582d77b
rz-sign: fix CRLF handling in FLIRT .pat parsing (#5707)
* rz-sign: fix CRLF handling in FLIRT .pat parsing
* test: use Fd to dump CRLF FLIRT .pat file
* test: use issue-provided CRLF FLIRT .pat sample

---------

Co-authored-by: Giovanni <561184+wargio@users.noreply.github.com>
2025-12-31 23:45:57 +08:00
Rot127
56b4f77916 Remove dead code of /b.
/b (backward search) was apparently not used anywhere anymore.
2025-12-31 23:45:05 +08:00
Rot127
154421ddbb Remove dead code /f.
/f (forward search) was apparently not used anywhere anymore.
2025-12-31 23:45:05 +08:00
bubblepipe
62dc16314f
heap: add static heap parse test for jemalloc (#5712) 2025-12-31 21:14:43 +08:00
Rot127
f79fe79bad
refactor: remove globals in cmd_search.c (#5713)
* Move preludecnt to legacy RzSearch object to remove more global state.
* Replace global c with local one.
2025-12-31 02:37:43 +08:00
Anton Angelov
065a329366
librz/bin: improve MZ binary format parsing (#5669)
* Fix index calculation issue
* Map extra data and overlay as separate sections
* Add test for previous session discovery issue and for confirming correct overlay section content
2025-12-31 02:35:34 +08:00
Khairul Azhar Kasmiran
ca47373fb7
Shorten rz_list_safe_prev/next to rz_list_prev/next (#5710) 2025-12-30 22:03:11 +08:00
SSharshunov
b4160d8050
New function rz_pvector_uniq (#5705) 2025-12-30 21:07:45 +08:00
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