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

io: return error when reading/writing to unmapped memory #3323

Merged
merged 12 commits into from
Feb 11, 2023
Merged

Conversation

ret2libc
Copy link
Member

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've documented or updated the documentation of every function and struct this PR changes. If not so I've explained why.
  • I've added tests that prove my fix is effective or that my feature works (if possible)
  • I've updated the rizin book with the relevant information (if needed)

Detailed description

See commits.

Test plan

See steps in #2871 .

Closing issues

Closes #2871

Before this commit on_map_skyline returned true even when the callback
was not called on any part of the skyline. In other words,
reading/writing to an unmapped memory returned true.

This commit changes the behaviour to return false in those cases.
XVilka

This comment was marked as resolved.

ret2libc and others added 3 commits February 8, 2023 22:40
Before this commit on_map_skyline returned true even when the callback
was not called on any part of the skyline. In other words,
reading/writing to an unmapped memory returned true.

This commit changes the behaviour to return false in those cases.
@XVilka XVilka added this to the 0.5.0 milestone Feb 10, 2023
@wargio

This comment was marked as resolved.

@ret2libc ret2libc marked this pull request as draft February 10, 2023 08:46
Copy link
Member

@XVilka XVilka left a comment

Choose a reason for hiding this comment

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

Looks good now.

@ret2libc
Copy link
Member Author

Yes but wait please, I put it in draft mode because I want to review a bit.

@ret2libc ret2libc marked this pull request as ready for review February 10, 2023 20:25
@ret2libc ret2libc merged commit c9d6ad9 into dev Feb 11, 2023
@XVilka XVilka deleted the fix-insert-bytes branch February 11, 2023 10:36
XVilka pushed a commit that referenced this pull request Feb 12, 2023
* core: 'wow' command was replaced with 'wb'

* io: on_map_skyline returns false when nothing was done

Before this patch on_map_skyline returned true even when the callback
was not called on any part of the skyline. In other words,
reading/writing to an unmapped memory returned true.

This commit changes the behaviour to return false in those cases.

* analysis/esil: mem_read/mem_write were alway returning true

* use o malloc instead of oC

* librz: deal with seek errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Insert in visual mode doesn't give correct feedback.
4 participants