Don't send warn/fatal output to the debug file when fuzzing.
This commit is contained in:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user