Set MALLOC_OPTIONS and MALLOC_CONF for all regress targets.

This commit is contained in:
Todd C. Miller
2021-02-15 13:17:46 -07:00
parent 52e3fcc795
commit de2a47f273
4 changed files with 12 additions and 0 deletions

View File

@@ -148,6 +148,8 @@ fuzz:
check: $(TEST_PROGS)
@if test X"$(cross_compiling)" != X"yes"; then \
MALLOC_OPTIONS=S; export MALLOC_OPTIONS; \
MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \
LC_ALL=C; export LC_ALL; \
unset LANG || LANG=; \
MALLOC_OPTIONS=S; export MALLOC_OPTIONS; \

View File

@@ -194,6 +194,8 @@ pvs-log-files: $(POBJS)
fuzz: $(FUZZ_PROGS)
@if test X"$(cross_compiling)" != X"yes"; then \
MALLOC_OPTIONS=S; export MALLOC_OPTIONS; \
MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \
echo "fuzz_iolog_legacy: verifying corpus"; \
./fuzz_iolog_legacy $(srcdir)/regress/corpus/log_legacy/*.log; \
echo "fuzz_iolog_json: verifying corpus"; \
@@ -204,6 +206,8 @@ fuzz: $(FUZZ_PROGS)
check: $(TEST_PROGS) fuzz
@if test X"$(cross_compiling)" != X"yes"; then \
MALLOC_OPTIONS=S; export MALLOC_OPTIONS; \
MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \
LC_ALL=C; export LC_ALL; \
unset LANG || LANG=; \
rval=0; \

View File

@@ -222,6 +222,8 @@ fuzz:
check: $(TEST_PROGS)
@if test X"$(cross_compiling)" != X"yes"; then \
MALLOC_OPTIONS=S; export MALLOC_OPTIONS; \
MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \
./check_python_examples ".libs/python_plugin.so"; \
fi

View File

@@ -483,6 +483,8 @@ pvs-studio: $(POBJS)
fuzz: $(FUZZ_PROGS)
@if test X"$(cross_compiling)" != X"yes"; then \
MALLOC_OPTIONS=S; export MALLOC_OPTIONS; \
MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \
echo "fuzz_sudoers: verifying corpus"; \
mkdir -p regress/fuzz; \
./fuzz_sudoers $(top_srcdir)/examples/sudoers $(srcdir)/regress/sudoers/*.in > regress/fuzz/fuzz_sudoers.out 2>&1; \
@@ -495,6 +497,8 @@ fuzz: $(FUZZ_PROGS)
check: $(TEST_PROGS) visudo testsudoers cvtsudoers fuzz
@if test X"$(cross_compiling)" != X"yes"; then \
MALLOC_OPTIONS=S; export MALLOC_OPTIONS; \
MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \
LC_ALL=C; export LC_ALL; \
unset LANG || LANG=; \
MALLOC_OPTIONS=S; export MALLOC_OPTIONS; \