You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: