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

Adding check if dlsym was called before calling malloc+free family. #60

Merged
merged 1 commit into from
Mar 27, 2019
Merged

Adding check if dlsym was called before calling malloc+free family. #60

merged 1 commit into from
Mar 27, 2019

Conversation

sudhackar
Copy link
Contributor

Fixes #59

Verify if original_malloc was actually resolved before calling it. If not, just call preeny_mallocwatch_orig to get it resolved. Technically free and realloc would never be called in a scenario like that but added just in case.

@zardus zardus merged commit 51bad2d into zardus:master Mar 27, 2019
@zardus
Copy link
Owner

zardus commented Mar 27, 2019

Thanks!

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.

mallocwatch breaks on a c++ program
2 participants