Sudo’s build system has native support for compiling with Sanitizers when using the gcc or clang compilers. It is recommended that you use the configure options described below rather than trying to adjust the CC, CFLAGS or LDFLAGS Makefile options. Failure to do so may result in memory leak false positives. Building sudo with sanitizer support To build sudo with sanitizer support you must use the --enable-sanitizer configure option. This will add the -fsanitize and -fno-omit-frame-pointer ...