Skip to content

Conversation

@vicky-dx
Copy link
Contributor

  • Added support for filtering strings by type: iza (ascii), izu (utf8), izw (wide/utf16), izW (wide32)
  • Implemented colon syntax for charset names: iz:ascii, iz:utf8, iz:wide, iz:wide32, iz:base64
  • Added str_type field to RCoreBinFilter struct for passing filter through call chain
  • Modified _print_strings to filter based on RBinString type field
  • Updated help messages to document new filtering options
  • All filters work with both iz (data sections) and izz (whole binary) commands
  • Supports combination with other modifiers (json, quiet, radare mode)

@trufae
Copy link
Collaborator

trufae commented Oct 26, 2025

In file included from cmd.c:97:
cmd_info.inc.c: In function ‘cmd_iz’:
cmd_info.inc.c:1552:45: error: unused variable ‘bo’ [-Werror=unused-variable]
1552 | RBinObject *bo = r_bin_cur_object (core->bin);
| ^~

warnings are considered errors. fix the build please

- Added support for filtering strings by type: iza (ascii), izu (utf8), izw (wide/utf16), izW (wide32)
- Implemented colon syntax for charset names: iz:ascii, iz:utf8, iz:wide, iz:wide32, iz:base64
- Added str_type field to RCoreBinFilter struct for passing filter through call chain
- Modified _print_strings to filter based on RBinString type field
- Updated help messages to document new filtering options
- All filters work with both iz (data sections) and izz (whole binary) commands
- Supports combination with other modifiers (json, quiet, radare mode)

Resolves radareorg#18821
- Ignore .personal_files/ directory for work-in-progress files
- Ignore TESTING_*.md files
- Ignore Windows Zone.Identifier files
- Ignore test backup files
@vicky-dx vicky-dx force-pushed the feature-iz-string-filter-18821 branch from 1718440 to a786a70 Compare October 27, 2025 06:27
bool rdump = false;
int str_type_filter = 0;
RCoreBinFilter filter = {0};

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty lines with a tab

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as reported by the lint script: ibr/core/cmd_info.inc.c:1429:
libr/core/cmd_info.inc.c:1463:
libr/core/cmd_info.inc.c:1502:
libr/core/cmd_info.inc.c:1516:

@trufae
Copy link
Collaborator

trufae commented Nov 1, 2025

please fix the ci tests, the pr lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants