Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathis Rosenhauer
libaec
Commits
4efbc51a
Commit
4efbc51a
authored
Sep 04, 2018
by
Mathis Rosenhauer
Browse files
CMake: enable ubsan for fuzzing
parent
25084694
Changes
1
Hide whitespace changes
Inline
Side-by-side
fuzzing/CMakeLists.txt
View file @
4efbc51a
...
...
@@ -5,10 +5,11 @@ endif()
add_library
(
aec_fuzz STATIC
${
libaec_SRCS
}
)
add_executable
(
fuzz_target fuzz_target.cc
)
set
(
FUZZ_TARGET_LINK_FLAGS
"-fsanitize=address"
)
set
(
FUZZ_TARGET_LINK_FLAGS
"-fsanitize=address
,undefined
"
)
set
(
FUZZ_TARGET_COMPILE_FLAGS
"-g"
"-fsanitize=address"
"-fsanitize=address,undefined"
"-fno-sanitize-recover=undefined"
"-fsanitize-coverage=trace-pc-guard,indirect-calls,edge"
)
set_target_properties
(
fuzz_target aec_fuzz PROPERTIES
LINK_FLAGS
${
FUZZ_TARGET_LINK_FLAGS
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment