2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-28 12:57:50 +00:00

Fix logic goof in 05781ba6f1f3, disable replacements when fuzzing.

Not the other way around.
This commit is contained in:
Todd C. Miller 2022-12-31 09:31:37 -07:00
parent 4b0dc2eecb
commit acee3ea6ef
2 changed files with 6 additions and 6 deletions

6
configure vendored
View File

@ -18118,9 +18118,9 @@ then :
fi
# Do not use our replacement functions when fuzzing, it may
# skew the coverage reports.
if test X"$enable_fuzzer" != X"no"; then
# Only use our replacement functions when not fuzzing,
# they may skew the coverage reports.
if test X"$enable_fuzzer" = X"no"; then
# glibc's getentropy() emulation may fail on older kernels.
# We use our own getentropy() by default on Linux.
: ${ac_cv_func_getentropy='no'}

View File

@ -2092,9 +2092,9 @@ case "$host" in
# We call getrandom via syscall(3) in case it is not in libc
AC_CHECK_HEADERS([linux/random.h sys/syscall.h])
# Do not use our replacement functions when fuzzing, it may
# skew the coverage reports.
if test X"$enable_fuzzer" != X"no"; then
# Only use our replacement functions when not fuzzing,
# they may skew the coverage reports.
if test X"$enable_fuzzer" = X"no"; then
# glibc's getentropy() emulation may fail on older kernels.
# We use our own getentropy() by default on Linux.
: ${ac_cv_func_getentropy='no'}