18 Commits
Author SHA1 Message Date
Alok Kumar Mishra bbe00b00c8 Fix debugger for spaced filepaths (#6489) 2026-06-10 11:56:34 +08:00
Alok Kumar Mishra a35e896fe7 support context-aware core plugins (#6404) 2026-05-28 20:37:01 +08:00
Alok Kumar Mishra 8c099f2c5e tui: build filtered panel commands dynamically (#6221)
* build filtered panel commands with dynamic string growth
* build filtered panel cmds with RzStrBuf
2026-05-04 23:24:22 +08:00
Alok Kumar Mishra de3d8a3d13 Keep section column printing bounded (#6220) 2026-04-14 22:32:12 +08:00
Alok Kumar Mishra 456faceda0 Fix leak from vector cleanup in analyze_gadget (#6232) 2026-04-14 12:48:56 +00:00
Alok Kumar Mishra 1c22e9d6a0 Bit-Vector: fail when cast growth cant resize storage (#6219) 2026-04-13 08:50:39 +00:00
Alok Kumar Mishra 0bd98c9628 Harden diff formatting and row offset growth (#6218)
* use actual fmt buff size instead of 64
2026-04-13 08:49:05 +00:00
Alok Kumar Mishra fa430f0cbb rz-diff: make visual resize state replacement allocation-safe (#6222) 2026-04-12 19:32:16 +08:00
Alok Kumar Mishra b46029ddec librz/util: guard allocation failure paths in string and vector helpers (#6217) 2026-04-12 17:16:24 +08:00
Alok Kumar Mishra f1e918d528 cons: fix Windows console VT mode save and restore (#6169)
* cons: fix windows console VT restore
* restore state in rzcons and own to instance for state
2026-04-11 10:47:05 +08:00
Alok Kumar Mishra 300af08287 librz/util/table: fix shared query filtering (#6166) 2026-04-08 11:48:04 +08:00
Alok Kumar Mishra c10d9c4a34 analysis: add enum immediate hints with ahie command (#6052) 2026-03-21 15:52:21 +08:00
Alok Kumar Mishra 1ba0cb22c6 fix: resolve endless loop (#6049) 2026-03-18 20:52:14 +08:00
Alok Kumar Mishra 470b1b1eb7 rz-ar: add archive extraction utility (#6036) 2026-03-18 03:51:18 +08:00
Alok Kumar Mishra d5bccae8e1 shell: add support for multiple paths in rz-find (#5875)
* rz-find: support multiple input paths

Fix multipath exit status, JSON framing, recursive error propagation; docs/tests. Also route rz-find to rz_main_rz_find in main dispatcher.
2026-02-06 21:56:30 +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
IndAlok 451fc3c3f8 Harden get_versym_entry_sdb_from_verdef against malformed DT_VERDEF l… (#5531)
* Harden get_versym_entry_sdb_from_verdef against malformed DT_VERDEF lists

get_versym_entry_sdb_from_verdef walks the DT_VERDEF linked list using vd_next but did not stop when vd_next == 0, similar to the earlier bug in get_gnu_verneed that caused CVE‑2023‑30226.

The fix mirrors the protections already applied to get_gnu_verneed and get_versym_entry_sdb_from_verneed by treating vd_next == 0 as end-of-list and terminating the loop.

* Add test case for malformed verdef in ELF format

* Update ELF crash test command (for relevancy to the test binary)

* Update ELF crash test by removing machine expectation

Removed expectation for machine architecture in ELF crash test.

* Headers added to expect for the test

* Just added version symbol resolution to trigger function
2025-11-23 02:05:53 +08:00
IndAlok fac0ea5a44 Add ppd/ shortcut to locate De Bruijn offsets (#5532)
* Add ppd/ shortcut to locate De Bruijn offsets

* Remove De Bruijn helpers section from rzshell.md

Removed De Bruijn helpers section from rzshell documentation.

* Refactor endianness test cases in cmd_print

Updated test cases for endianness in cmd_print.

* Remove argument validation in print pattern handler (Unnecessary Duplicated Check)

Removed argument check for rz_print_pattern_debrujin_find_handler function.
2025-11-18 10:32:02 +00:00