rizin/subprojects
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
..
mpc Fix gcc12-asan mpc -Wformat-overflow= warnings (#3081) 2022-10-09 18:54:08 +08:00
nettle build: Improved meson-build to use rizin as subproject (#4684) 2024-10-29 23:59:42 +08:00
packagefiles Implement unified API for describing addresses (name+offset format) (#5571) 2025-12-10 19:11:31 +08:00
ptrace-wrap Move remaining things from shlr/ to meson subprojects (#2126) 2021-12-22 09:20:39 +08:00
rizin-shell-parser Add ?**, ?**e, ?*** for interactive search of command and settings details (#5062) 2025-07-08 12:06:39 +00:00
rzar build: Improved meson-build to use rizin as subproject (#4684) 2024-10-29 23:59:42 +08:00
rzgdb build: Improved meson-build to use rizin as subproject (#4684) 2024-10-29 23:59:42 +08:00
rzheap Fix build error on loongarch64 (#4558) 2024-07-05 15:00:17 +08:00
rzqnx linter: update clang-format installation to version 20 (#5451) 2025-10-12 08:02:03 +08:00
rzspp Fix #4799: Use Meson to set c_std=c99 (#4828) 2025-01-13 22:22:23 +08:00
rzw32dbg_wrap Move remaining things from shlr/ to meson subprojects (#2126) 2021-12-22 09:20:39 +08:00
rzwinkd linter: update clang-format installation to version 20 (#5451) 2025-10-12 08:02:03 +08:00
xxhash build: Improved meson-build to use rizin as subproject (#4684) 2024-10-29 23:59:42 +08:00
yxml SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
blake3.wrap subprojects: bump blake3 to 2de3cb1 (#5091) 2025-04-18 23:13:12 +08:00
capstone-next.wrap Bump Capstone to latest next (v6-Alpha5 + two fixes). (#5308) 2025-08-22 09:29:04 +08:00
capstone-v4.wrap Use git depth 1 for Meson subprojects (#4138) 2024-01-22 21:14:32 +08:00
capstone-v5.wrap Use git depth 1 for Meson subprojects (#4138) 2024-01-22 21:14:32 +08:00
capstone-v6.wrap Bump Capstone to latest next (v6-Alpha5 + two fixes). (#5308) 2025-08-22 09:29:04 +08:00
libdemangle.wrap subprojects: update rz-libdemangle (#4791) 2024-12-23 22:03:15 +08:00
liblzma.wrap subprojects: update xz to 5.8.1 (#5067) 2025-04-05 12:30:58 +08:00
libmspack.wrap Use git depth 1 for Meson subprojects (#4138) 2024-01-22 21:14:32 +08:00
libzip.wrap subprojects: update libzip from 1.9.2 to 1.11.3 (#3667) 2025-03-01 15:25:09 +08:00
lz4.wrap subprojects: update lz4, xz, zstd libraries (#4958) 2025-03-04 02:44:53 +08:00
pcre2.wrap subprojects: bump to PCRE2 10.46 (#5333) 2025-09-02 09:51:15 +08:00
pcre2_cross_native.wrap subprojects: bump to PCRE2 10.46 (#5333) 2025-09-02 09:51:15 +08:00
rizin-grammar-c.wrap Update Rizin C grammar to tree-sitter-0.25.3 (#5088) 2025-04-16 23:42:11 +08:00
sigdb.wrap Use git depth 1 for Meson subprojects (#4138) 2024-01-22 21:14:32 +08:00
softfloat.wrap Add wrap for native SoftFloat subproject 2024-09-04 21:16:17 +08:00
softfloat_cross_native.wrap Add wrap for native SoftFloat subproject 2024-09-04 21:16:17 +08:00
tree-sitter.wrap subprojects: update tree-sitter 2025-03-07 09:45:07 +00:00
zlib.wrap subprojects/zlib: bump version to 1.3.1 2024-08-15 22:51:42 +08:00
zstd.wrap subprojects: update lz4, xz, zstd libraries (#4958) 2025-03-04 02:44:53 +08:00
zydis.wrap Migrate from Capstone to Zydis (x86 architecture) (#5164) 2025-05-23 13:03:46 +00:00