File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -249,5 +249,7 @@ if(OJPH_BUILD_FUZZER)
249249 message (FATAL_ERROR "Fuzzing requires a Clang toolchain." )
250250 endif ()
251251
252+ message (STATUS "Building fuzzer target" )
253+
252254 add_subdirectory (fuzzing)
253255endif ()
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ podman build -t openjph-fuzz -f fuzzing/Dockerfile
77podman run -it --rm -v $( pwd) :/app/ojph/ openjph-fuzz bash
88image# mkdir /app/build/
99image# cd /app/build/
10- image# cmake /app/ojph -DOJPH_BUILD_FUZZER=ON -DBUILD_SHARED_LIBS=OFF
10+ image# cmake /app/ojph -DCMAKE_CXX_FLAGS= " -fsanitize=fuzzer,address " - DOJPH_BUILD_FUZZER=ON -DBUILD_SHARED_LIBS=OFF
1111image# make
1212image# ./fuzzing/ojph_expand_fuzz_target /app/jp2k_test_codestreams/openjph/* .j2c
1313```
Original file line number Diff line number Diff line change 1- if (DEFINED ENV{BUILD_UID})
2- link_libraries ($ENV{LIB_FUZZING_ENGINE} )
3- else ()
4- add_compile_options (-fsanitize=fuzzer,address)
5- add_link_options (-fsanitize=fuzzer,address)
6- endif ()
1+ link_libraries ($ENV{LIB_FUZZING_ENGINE} )
72
83add_executable (ojph_expand_fuzz_target fuzz_targets/ojph_expand_fuzz_target.cpp)
94target_link_libraries (ojph_expand_fuzz_target PRIVATE openjph)
10-
You can’t perform that action at this time.
0 commit comments