Skip to content

Commit

Permalink
Fix fuzz_sample_deser build for honggfuzz engine
Browse files Browse the repository at this point in the history
It built successfully, but would not run.  This also gets reported as a build error by
OSS-Fuzz.

Signed-off-by: Erik Boasson <[email protected]>
  • Loading branch information
eboasson committed Mar 22, 2024
1 parent 630852f commit 81c1d44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fuzz/fuzz_sample_deser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ target_include_directories(
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../src/core/ddsi/include>"
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../src/core/ddsi/src>")

target_compile_options(fuzz_sample_deser PRIVATE -fsanitize=fuzzer,address -g)
set_target_properties(fuzz_sample_deser PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries(fuzz_sample_deser fuzz_sample CycloneDDS::ddsc -fsanitize=fuzzer,address)
target_link_libraries(fuzz_sample_deser CycloneDDS::ddsc $ENV{LIB_FUZZING_ENGINE})

0 comments on commit 81c1d44

Please sign in to comment.