Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wolfSSL/wolfssl
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: CodeIntelligenceTesting/test-wolfssl
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 2 commits
  • 5 files changed
  • 2 contributors

Commits on Oct 24, 2024

  1. build: enable fuzz test setup

    MarkusZoppelt authored and simonresch committed Oct 24, 2024
    Copy the full SHA
    e684286 View commit details

Commits on Jan 14, 2025

  1. Copy the full SHA
    3a5eee5 View commit details
Showing with 14 additions and 1 deletion.
  1. +3 −0 .gitignore
  2. +7 −1 CMakeLists.txt
  3. +3 −0 cifuzz-hints.txt
  4. +1 −0 cifuzz.yaml
  5. 0 fuzz.cpp
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -449,3 +449,6 @@ debian/control
/**/.vscode/launch.json
/**/.vscode/ipch
/**/sdkconfig.esp32dev

.cifuzz/
.cifuzz-*/
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -34,7 +34,10 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
You must delete them, or cmake will refuse to work.")
endif()

project(wolfssl VERSION 5.7.2 LANGUAGES C ASM)
project(wolfssl VERSION 5.7.2 LANGUAGES C ASM CXX)

find_package(cifuzz NO_SYSTEM_ENVIRONMENT_PATH)
enable_fuzz_testing()

# Set WOLFSSL_ROOT if not already defined
if ("${WOLFSSL_ROOT}" STREQUAL "")
@@ -2760,3 +2763,6 @@ if(WOLFSSL_INSTALL)
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/wolfssl
)
endif()

add_fuzz_test(fuzz fuzz.cpp)
target_link_libraries(fuzz wolfssl)
3 changes: 3 additions & 0 deletions cifuzz-hints.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
When fuzzing the function `wc_AesCbcDecrypt` ensure that the decrypted buffer
is large enough for the input that is passed to the function. Either allocate a
large enough buffer or discard large fuzzing inputs.
1 change: 1 addition & 0 deletions cifuzz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build-system: cmake
Empty file added fuzz.cpp
Empty file.