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

Revert memory leak fix for relocs #4463

Merged
merged 2 commits into from
Apr 27, 2024
Merged

Revert memory leak fix for relocs #4463

merged 2 commits into from
Apr 27, 2024

Conversation

giridharprasath
Copy link
Contributor

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: #4426

...

Test plan

...

Closing issues

...

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.

I wonder why it reverted the test result back?

@XVilka XVilka requested a review from pelijah April 27, 2024 03:06
@pelijah
Copy link
Contributor

pelijah commented Apr 27, 2024

I wonder why it reverted the test result back?

IDK about vaddr of the import, might be a bug in PE plugin or in bin lib. But case of a name is a good example of side effects: PE plugin modifies a duplicate which is not presented in imports list.

@XVilka XVilka merged commit a7a29f1 into rizinorg:dev Apr 27, 2024
44 checks passed
@pelijah
Copy link
Contributor

pelijah commented Apr 27, 2024

@XVilka What worries me more is that asan jobs didn't catch those UAF/double free.

@XVilka
Copy link
Member

XVilka commented Apr 27, 2024

It probably means we don't have enough testcases for these paths - PE, COFF format parsers.

@pelijah
Copy link
Contributor

pelijah commented Apr 27, 2024

It probably means we don't have enough testcases for these paths - PE, COFF format parsers.

No, it is enough to just open/close with rizin any COFF file from testbins to trigger UAF.

@pelijah
Copy link
Contributor

pelijah commented Apr 27, 2024

But ASAN is happy if I run rz-test test/db/formats/coff

@pelijah
Copy link
Contributor

pelijah commented Apr 28, 2024

Nevermind it is all about Q option

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.

3 participants