diff --git a/.github/workflows/dev-long-tests.yml b/.github/workflows/dev-long-tests.yml index d5e476b4c5..0adfed9141 100644 --- a/.github/workflows/dev-long-tests.yml +++ b/.github/workflows/dev-long-tests.yml @@ -188,7 +188,7 @@ jobs: - name: ASan + UBSan + Regression Test run: make -j uasanregressiontest - clang-ubsan-regression: + clang-asan-ubsan-regression: runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1 diff --git a/tests/fuzz/Makefile b/tests/fuzz/Makefile index a64d2d2528..13e29bb7a9 100644 --- a/tests/fuzz/Makefile +++ b/tests/fuzz/Makefile @@ -263,9 +263,10 @@ corpora: $(patsubst %,corpora/%,$(FUZZ_TARGETS)) .PHONY: seedcorpora seedcorpora: $(patsubst %,corpora/%_seed_corpus.zip,$(FUZZ_TARGETS)) +REGRESSION_TARGET ?= all regressiontest: corpora - CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" $(PYTHON) ./fuzz.py build all --debug=$(DEBUGLEVEL) - $(PYTHON) ./fuzz.py regression all + CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" $(PYTHON) ./fuzz.py build $(REGRESSION_TARGET) --debug=$(DEBUGLEVEL) + $(PYTHON) ./fuzz.py regression $(REGRESSION_TARGET) clean: @$(RM) *.a *.o $(FUZZ_TARGETS) diff --git a/tests/fuzz/dictionary_loader.c b/tests/fuzz/dictionary_loader.c index 7b7c00428a..ec9de4b0b6 100644 --- a/tests/fuzz/dictionary_loader.c +++ b/tests/fuzz/dictionary_loader.c @@ -77,9 +77,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *src, size_t size) FUZZ_dataProducer_uint32Range(producer, 0, 2); size = FUZZ_dataProducer_remainingBytes(producer); - DEBUGLOG(2, "Dict load method %d", dlm); - DEBUGLOG(2, "Dict content type %d", dct); - DEBUGLOG(2, "Dict size %u", (unsigned)size); + DEBUGLOG(4, "Dict load method %d", dlm); + DEBUGLOG(4, "Dict content type %d", dct); + DEBUGLOG(4, "Dict size %u", (unsigned)size); void* const rBuf = FUZZ_malloc(size); size_t const cBufSize = ZSTD_compressBound(size); diff --git a/tests/fuzz/sequence_compression_api.c b/tests/fuzz/sequence_compression_api.c index 21b6ac84e9..9295d248cc 100644 --- a/tests/fuzz/sequence_compression_api.c +++ b/tests/fuzz/sequence_compression_api.c @@ -239,8 +239,8 @@ transferLiterals(void* dst, size_t dstCapacity, const ZSTD_Sequence* seqs, size_ for (n=0; n