Don't send warn/fatal output to the debug file when fuzzing.

This commit is contained in:
Todd C. Miller
2022-12-30 08:03:05 -07:00
parent a9a3a8e37b
commit 774b3c6e68

View File

@@ -28,6 +28,11 @@
#include "sudo_plugin.h" /* for conversation function */ #include "sudo_plugin.h" /* for conversation function */
/* No output to debug files when fuzzing. */
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
# define SUDO_ERROR_WRAP 0
#endif
/* /*
* We wrap fatal/fatalx and warn/warnx so that the same output can * We wrap fatal/fatalx and warn/warnx so that the same output can
* go to the debug file, if there is one. * go to the debug file, if there is one.