mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-27 13:33:17 +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
|
endif
|
||||||
|
|
||||||
ifeq ($(config),sanitize)
|
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
|
LDFLAGS+=-fsanitize=address,undefined
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ endif
|
|||||||
|
|
||||||
fuzz_%: $(BUILD)/fuzz_%
|
fuzz_%: $(BUILD)/fuzz_%
|
||||||
@mkdir -p build/$@
|
@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:
|
clean:
|
||||||
rm -rf $(BUILD)
|
rm -rf $(BUILD)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user