Skip to content

10.13 sosyn redir not working #5

@paulfloyd

Description

@paulfloyd

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions