-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels