tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ASAN and dhcpcd with privilege separation

On 31.01.2021 13:21, Roy Marples wrote:
> What I want to end up with is some #ifdef SANITIZE foo so that enough is
> disabled to make it work.

You can use something like this:

#ifndef __has_feature
#define __has_feature(x)        0

#if __has_feature(address_sanitizer) || \
    defined(__SANITIZE_ADDRESS__) || \
    __has_feature(leak_sanitizer) || \





__SANITIZE_LEAK__ is a NetBSD GCC extension.

Home | Main Index | Thread Index | Old Index