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

10.13 sosyn redir not working #5

Open
paulfloyd opened this issue Feb 5, 2023 · 0 comments
Open

10.13 sosyn redir not working #5

paulfloyd opened this issue Feb 5, 2023 · 0 comments

Comments

@paulfloyd
Copy link
Owner

paulfloyd commented Feb 5, 2023

This is for memcheck/tests/wrapmalloc

Quick aside. The comment in the file talks about interposing. It's wrong. What this program is trying to do is replacement. malloc in wrapmalloc.c is supposed to simply replace libc malloc. This should be something that is supported by the C standard. Interposing is a different kettle of fish. It uses some non-standard link loader technique to replace calls to one function (eg "malloc") with calls to another (eg "my_malloc"). Often the interposer will call the interposee.

There is
ALLOC_or_NULL(SO_SYN_MALLOC, malloc, malloc);

but it doesn't seem to redir from the exe

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

No branches or pull requests

1 participant