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

Missing readdir and readdir64 detours #2003

Merged
merged 12 commits into from
Oct 11, 2023

Conversation

Razz4780
Copy link
Contributor

Closes #2001

User application was crashing, because while opening the directory was hooked, readdir64 - used by JVM - was not. libc was getting our opaque identifier as a pointer to DIR and segfaulting.

Copy link
Member

@eyalb181 eyalb181 left a comment

Choose a reason for hiding this comment

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

Could you add a test?

@Razz4780 Razz4780 added this pull request to the merge queue Oct 11, 2023
@t4lz t4lz mentioned this pull request Oct 11, 2023
15 tasks
Merged via the queue into metalbear-co:main with commit 0f25561 Oct 11, 2023
16 checks passed
@Razz4780 Razz4780 deleted the readdir-detours branch October 11, 2023 11:46
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.

Segementation Fault When Reading File With Java App
2 participants