Merge pull request #830 from Etsukata/fix-tests-fuzz-build-error
Fix tests/fuzz build error
This commit is contained in:
+5
-1
@@ -48,7 +48,11 @@ LIBFUZZER ?= -lFuzzer
|
|||||||
|
|
||||||
default: all
|
default: all
|
||||||
|
|
||||||
all: round_trip simple_decompress
|
all: \
|
||||||
|
simple_round_trip \
|
||||||
|
stream_round_trip \
|
||||||
|
simple_decompress \
|
||||||
|
stream_decompress
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(FUZZ_CPPFLAGS) $(FUZZ_CFLAGS) $^ -c -o $@
|
$(CC) $(FUZZ_CPPFLAGS) $(FUZZ_CFLAGS) $^ -c -o $@
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#include "fuzz_helpers.h"
|
#include "fuzz_helpers.h"
|
||||||
#include "zstd.h"
|
#include "zstd.h"
|
||||||
|
|
||||||
static size_t const kBufSize = ZSTD_BLOCKSIZE_ABSOLUTEMAX;
|
static size_t const kBufSize = ZSTD_BLOCKSIZE_MAX;
|
||||||
|
|
||||||
static ZSTD_DStream *dstream = NULL;
|
static ZSTD_DStream *dstream = NULL;
|
||||||
static void* buf = NULL;
|
static void* buf = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user