Avoid compilation errors if getaddrinfo() or freeaddrinfo() are macros.
If this is the case we probably can't stub out the functions but at least the fuzzer will compile.
This commit is contained in:
@@ -177,6 +177,10 @@ fuzz_hook_stub(struct sudo_hook *hook)
|
|||||||
* can look up "localhost" and returns an error for anything else.
|
* can look up "localhost" and returns an error for anything else.
|
||||||
*/
|
*/
|
||||||
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
|
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
|
||||||
|
/* Avoid compilation errors if getaddrinfo() or freeaddrinfo() are macros. */
|
||||||
|
# undef getaddrinfo
|
||||||
|
# undef freeaddrinfo
|
||||||
|
|
||||||
int
|
int
|
||||||
# ifdef HAVE_GETADDRINFO
|
# ifdef HAVE_GETADDRINFO
|
||||||
getaddrinfo(
|
getaddrinfo(
|
||||||
|
Reference in New Issue
Block a user