Skip to content

Commit

Permalink
Fix fuzzing workflow (#451)
Browse files Browse the repository at this point in the history
fuzz: fix pkcs11 fuzzing builds
  • Loading branch information
alexgeana authored Feb 24, 2025
1 parent 146224a commit b8c719b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
fuzz_asan:
name: fuzz with AddressSanitizer
runs-on: ubuntu-latest
container: ubuntu:23.04
container: ubuntu:24.04

steps:

Expand Down
4 changes: 4 additions & 0 deletions pkcs11/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ set_property(SOURCE ${GGO_C} APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-unused-
endif()

add_library(yubihsm_pkcs11 SHARED ${SOURCE})
if (FUZZING AND ENABLE_STATIC)
target_sources(yubihsm_pkcs11 PUBLIC ${PROJECT_SOURCE_DIR}/lib/fuzz/yubihsm_fuzz.cc)
set_target_properties (yubihsm_pkcs11 PROPERTIES COMPILE_FLAGS "-DSTATIC ")
endif()
add_coverage (yubihsm_pkcs11)

# Remove "lib" form the built target
Expand Down

0 comments on commit b8c719b

Please sign in to comment.