Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for /V range search logic #23426

Merged
merged 2 commits into from
Oct 6, 2024

Conversation

Saru2003
Copy link
Contributor

@Saru2003 Saru2003 commented Oct 5, 2024

  • [ * ] Mark this if you consider it ready to merge
  • I've added tests (optional)
  • I wrote some lines in the book (optional)

Description

This PR adds support for the V flag in the rafind2 command, enabling value-range searches as specified in issue #22704. Users can now specify a range of values using the format /V<size>:<min_value>[,<max_value>], which enhances data manipulation capabilities. The implementation includes input parsing and size validation.

Please review my implementation and provide feedback.


if (comma) {
*comma++ = 0;
min_value = r_num_math(NULL, colon);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use the proper indentation rules. Spaces before (, dont define variables in the for() block..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@trufae I’ve made the requested changes, including updating the help message and ensuring proper indentation/styling. Please let me know if there’s anything else you’d like me to adjust.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Perfect :) merged! Its always good to have some tests but not mandarory. Thank you for your first contribution!

@trufae
Copy link
Collaborator

trufae commented Oct 5, 2024

Can you update the manpage and help
Message too?

@trufae trufae merged commit 09ee59c into radareorg:master Oct 6, 2024
41 of 42 checks passed
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