Skip to content

redir issues #149

@paulfloyd

Description

@paulfloyd

First part, Darwin does not have a redirect for wcpncpy (see shared/vg_replace_strmem.c).

I tried adding VGO_darwin to the list of platforms but that still didn't work.

This looks like a problem with indirect functions.

Second part, some libc functions call end up calling "_chk" versions (e.g., strcpy_chk see here for the macro

https://github.com/apple-open-source/macos/blob/f60c49b581c54dfc3367b3ebc5b7904fd7d5db7b/xnu/osfmk/libsa/string.h#L940

). I'm not sure which compiler options cause __XNU_FORTIFY_SOURCE to be set. Should we also try to redirect these functions?

This is with MacOS X 10.13.

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