Commit graph

30250 commits

Author SHA1 Message Date
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
Khairul Azhar Kasmiran
748f849dcf
netbsd /z??: Fix wrap point for utf8 word '"и.{3}м"' when scr.columns=70 (#5608) 2025-12-11 21:51:51 +08:00
Giovanni
e3b63b36cf
Remove broken from working & correct tests (#5607) 2025-12-11 21:51:15 +08:00
Khairul Azhar Kasmiran
b61ef5cfb8
Increase rzil/ppc64 test timeouts to 60 seconds (#5609) 2025-12-11 17:32:26 +08:00
Giovanni
0b33d19d60
Optimize tests to recover some CI runtime (#5601)
* Optimize cmd_print tests
* Fix nullderef in bfile_string.c and optimize cmd_i
* Disable esil runs on appveyor
* Fix obviously wrong time scale in rz-test
* Add more info about -e option when in log mode or verbose
2025-12-11 13:46:31 +08:00
Khairul Azhar Kasmiran
011f5332e8
Increase rzil/mips test timeouts to 60 seconds (#5606) 2025-12-11 10:48:05 +08:00
Giovanni
b5f52298fc
Improve output of rz-test to provide more details on execution time (#5604)
* Show total elapsed in -L mode and show more info.
* Add -N to disable diffing (unless a fail happens)
2025-12-11 00:29:29 +08:00
Giovanni
c5ed84f674
librz/arch/alpha: fix jump addressing when resolving 64bit addr (#5603) 2025-12-10 20:50:30 +08:00
Khairul Azhar Kasmiran
91b4b11fd8
Change help test to work around NetBSD wrapping issue (#5602)
* Change help test to work around NetBSD wrapping issue

* Use `scr.columns=60` instead
2025-12-10 20:27:09 +08:00
IndAlok
666d0ba8a0
Implement unified API for describing addresses (name+offset format) (#5571)
* core: Add unified API for describing addresses (resolves rizinorg#4993)
* core: Fix pxW and prompt tests by adding backward-compatible delta limit

This commit fixes the test failures caused by behavioral changes in the
unified address description API:

1. pxW tests failing (cmd_pxw, helloworld-gcc-elf):
   - The old pxW code had a hardcoded 8192 limit for flag delta
   - Added max_flag_delta option to RzAddrDescribeOptions
   - rz_core_addr_get_flag_offset() now uses max_flag_delta=-1 (8192 limit)

2. prompt settings test failing (test/db/tools/rz):
   - The old prompt code used spaces around +/- (e.g., 'entry0 + 1')
   - Added use_spaces_around_delta option to RzAddrDescribeOptions
   - Added rz_core_addr_get_flag_offset_prompt() for prompt display

* core/caddr: Add proper error handling and API improvements

- Add RZ_NONNULL annotations to helper function parameters
- Add null pointer checks after rz_str_dup() to detect allocation failures
- Change helper functions to return bool for error propagation
- Handle memory allocation failures in rz_core_addr_describe() by
  checking helper return values and cleaning up on failure
- Use RZ_STR_ISEMPTY macro for consistent empty string checks
- Extract rz_core_addr_description_to_pj() as separate API for
  converting RzAddrDescription to JSON format

* core: Add unified API for describing addresses (resolves rizinorg#4993)
 core: Fix pxW and prompt tests by adding backward-compatible delta limit

This commit fixes the test failures caused by behavioral changes in the
unified address description API:

1. pxW tests failing (cmd_pxw, helloworld-gcc-elf):
   - The old pxW code had a hardcoded 8192 limit for flag delta
   - Added max_flag_delta option to RzAddrDescribeOptions
   - rz_core_addr_get_flag_offset() now uses max_flag_delta=-1 (8192 limit)

2. prompt settings test failing (test/db/tools/rz):
   - The old prompt code used spaces around +/- (e.g., 'entry0 + 1')
   - Added use_spaces_around_delta option to RzAddrDescribeOptions
   - Added rz_core_addr_get_flag_offset_prompt() for prompt display
2025-12-10 19:11:31 +08:00
Muhammed Answar C K
d3087cc148
shell: pipe support for uniq and sort commands (#5580) 2025-12-10 19:09:30 +08:00
Arya H R
2a02208740
shell: new arg type RZ_CMD_ARG_TYPE_FOLDER (#5514)
* Added new arg type RZ_CMD_ARG_TYPE_FOLDER
* Path normalization API
* Add tests
2025-12-10 19:08:38 +08:00
SSharshunov
ca3499ed4f
Endian helpers with shifting cursor (rz_read_bleXX_offset) (#5593) 2025-12-10 19:07:26 +08:00
Anton Angelov
8c6b7a7e73
refactor: rz_analysis_reflines_get() - change RzList to RzPVector (#5572)
* Change RzList to RzPVector
* Add annotations and doxygen comments for public API
* Fix incorrect pointer assignment
* Add  macro and change return type
* Add test for covering rz_analysis_reflines_middle
2025-12-10 15:03:35 +08:00
Premade
0c60f8689c
librz/config: merge graph.offset into asm.offset (#5596)
* Remove graph.offset evar
* db/cmd/cmd_visual: Set `e asm.offset=false`
* Use `rz_config_set_b` when setting `asm.offset`
2025-12-10 14:52:21 +08:00
Muhammed Answar C K
61f06f07ee
Fix rz-find ignoring RZ_LOGLEVEL. (#5592) 2025-12-10 14:51:06 +08:00
Giovanni
67f301eb54
librz/arch: fixes for AVR (#5597) 2025-12-10 14:50:22 +08:00