diff options
author | Nick Terrell <terrelln@fb.com> | 2019-07-19 01:49:40 (GMT) |
---|---|---|
committer | Nick Terrell <terrelln@fb.com> | 2019-07-19 01:54:59 (GMT) |
commit | d28159c025829fc70a295b727e32f899a9e0c7c5 (patch) | |
tree | 5e178908dd7d63670366c78176b8621dba9d394c /ossfuzz/Makefile | |
parent | b487660309d4245eec87e3ada4712bc2a19df791 (diff) | |
download | lz4-d28159c025829fc70a295b727e32f899a9e0c7c5.zip lz4-d28159c025829fc70a295b727e32f899a9e0c7c5.tar.gz lz4-d28159c025829fc70a295b727e32f899a9e0c7c5.tar.bz2 |
[fuzz] Add LZ4 frame fuzzers
* Round trip fuzzer
* Compress fuzzer
* Decompress fuzzer
Diffstat (limited to 'ossfuzz/Makefile')
-rw-r--r-- | ossfuzz/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ossfuzz/Makefile b/ossfuzz/Makefile index 9974b81..6875eb6 100644 --- a/ossfuzz/Makefile +++ b/ossfuzz/Makefile @@ -33,7 +33,8 @@ DEBUGFLAGS = -g -DLZ4_DEBUG=$(DEBUGLEVEL) LZ4_CFLAGS = $(CFLAGS) $(DEBUGFLAGS) $(MOREFLAGS) LZ4_CXXFLAGS = $(CXXFLAGS) $(DEBUGFLAGS) $(MOREFLAGS) -LZ4_CPPFLAGS = $(CPPFLAGS) -I$(LZ4DIR) -DXXH_NAMESPACE=LZ4_ +LZ4_CPPFLAGS = $(CPPFLAGS) -I$(LZ4DIR) -DXXH_NAMESPACE=LZ4_ \ + -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION FUZZERS := \ compress_fuzzer \ @@ -41,7 +42,10 @@ FUZZERS := \ round_trip_fuzzer \ round_trip_stream_fuzzer \ compress_hc_fuzzer \ - round_trip_hc_fuzzer + round_trip_hc_fuzzer \ + compress_frame_fuzzer \ + round_trip_frame_fuzzer \ + decompress_frame_fuzzer all: $(FUZZERS) @@ -54,7 +58,7 @@ $(LZ4DIR)/liblz4.a: $(CC) -c $(LZ4_CFLAGS) $(LZ4_CPPFLAGS) $< -o $@ # Generic rule for generating fuzzers -%_fuzzer: %_fuzzer.o $(LZ4DIR)/liblz4.a +%_fuzzer: %_fuzzer.o lz4_helpers.o $(LZ4DIR)/liblz4.a # Compile the standalone code just in case. The OSS-Fuzz code might # override the LIB_FUZZING_ENGINE value to "-fsanitize=fuzzer" $(CC) -c $(LZ4_CFLAGS) $(LZ4_CPPFLAGS) standaloneengine.c -o standaloneengine.o |