-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[dev] Bad libc mapping detection #2370
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the
process.libc
property/function, the logic is currently:and:
So if there is a
libc-
anywhere in the mappings path, it will be counted as libc. I happened to be running the binary in a path which contained that string, and the binary sometimes gets returned incorrectly. This happens especially often if the actuallibc
didn't yet have time to load into the process, andNone
should be returned.minimal reproducable script:
Output:
Proposed solution: Still check for '.so' in the second part of the if, and only check for the filename instead of the whole path.
The text was updated successfully, but these errors were encountered: