File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 38
38
39
39
- name : Build Fuzzer
40
40
run : |
41
+ export CC=clang
42
+ export CXX=clang++
41
43
fuzz_harness=$(ls -d test/fuzz/device/*/)
42
44
for h in $fuzz_harness
43
45
do
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ __check_defined = \
16
16
17
17
# -------------- Fuzz harness compiler ------------
18
18
19
- CC = clang
20
- CXX = clang++
21
- GDB = gdb
19
+ CC ? = clang
20
+ CXX ? = clang++
21
+ GDB ? = gdb
22
22
OBJCOPY = objcopy
23
23
SIZE = size
24
24
MKDIR = mkdir
34
34
PYTHON = python3
35
35
endif
36
36
37
+ # -------------- Fuzz harness flags ------------
38
+ COVERAGE_FLAGS ?= -fsanitize-coverage=trace-pc-guard
39
+ SANITIZER_FLAGS ?= -fsanitize=fuzzer \
40
+ -fsanitize=address
41
+
42
+ CFLAGS += $(COVERAGE_FLAGS ) $(SANITIZER_FLAGS )
43
+
37
44
# -------------- Source files and compiler flags --------------
38
45
39
46
@@ -42,9 +49,6 @@ INC += $(TOP)/test
42
49
# Compiler Flags
43
50
CFLAGS += \
44
51
-ggdb \
45
- -fsanitize=fuzzer \
46
- -fsanitize=address \
47
- -fsanitize=undefined \
48
52
-fdata-sections \
49
53
-ffunction-sections \
50
54
-fno-strict-aliasing \
You can’t perform that action at this time.
0 commit comments