2022-05-26 05:37:04 +00:00
|
|
|
.POSIX:
|
2022-05-30 00:31:12 +00:00
|
|
|
CXX = clang++
|
|
|
|
CFLAGS = -std=c++17 -Wall -Wextra -O3 -g3
|
2022-05-26 05:37:04 +00:00
|
|
|
|
2022-06-06 04:14:01 +00:00
|
|
|
all: clean execSan target
|
2022-05-26 05:37:04 +00:00
|
|
|
|
2022-05-30 00:31:12 +00:00
|
|
|
execSan: execSan.cpp
|
|
|
|
$(CXX) $(CFLAGS) -lpthread -o $@ $^
|
2022-05-26 05:37:04 +00:00
|
|
|
|
|
|
|
target: target.cpp
|
2022-05-31 22:57:27 +00:00
|
|
|
$(CXX) $(CFLAGS) -fsanitize=address,fuzzer -o $@ $^
|
2022-05-26 05:37:04 +00:00
|
|
|
|
|
|
|
test: all vuln.dict
|
|
|
|
./execSan ./target -dict=vuln.dict
|
|
|
|
|
|
|
|
clean:
|
2022-06-06 04:14:01 +00:00
|
|
|
rm -f execSan /tmp/tripwire target
|