mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-25 20:14:10 +08:00
Merge pull request #590 from zeux/sanfuzz
Update config=sanitize and fuzz targets
This commit is contained in:
commit
6909df2478
4
Makefile
4
Makefile
@ -27,7 +27,7 @@ ifeq ($(config),coverage)
|
||||
endif
|
||||
|
||||
ifeq ($(config),sanitize)
|
||||
CXXFLAGS+=-fsanitize=address,undefined -fno-sanitize=float-divide-by-zero,float-cast-overflow -fno-sanitize-recover=all
|
||||
CXXFLAGS+=-fsanitize=address,undefined -fno-sanitize-recover=all
|
||||
LDFLAGS+=-fsanitize=address,undefined
|
||||
endif
|
||||
|
||||
@ -66,7 +66,7 @@ endif
|
||||
|
||||
fuzz_%: $(BUILD)/fuzz_%
|
||||
@mkdir -p build/$@
|
||||
$< build/$@ tests/data_fuzz_$* -max_len=1024 -dict=tests/fuzz_$*.dict
|
||||
$< build/$@ tests/data_fuzz_$* -max_len=1024 -dict=tests/fuzz_$*.dict -fork=16
|
||||
|
||||
clean:
|
||||
rm -rf $(BUILD)
|
||||
|
Loading…
x
Reference in New Issue
Block a user