Victor Derks 66a3605fd9
Add REUSE compatibility (#338)
- Follow the best practices of https://reuse.software/ to ensure BSD-3 licence is correctly applied.
- Add a badge to README.md
- Note: remove arm build as the CI pipeline is broken for this architecture
2024-12-04 12:33:36 +01:00

973 B

Instructions to fuzz CharLS with LibFuzzer

  • It is in general recommended to fuzz the release builds. The release build runs faster and more fuzzing can be done in a time period.

Windows (MSbuild projects)

  • Enable the project LibFuzzerTest in the Visual Studio Configuration Manager
    It is excluded by default as Visual Studio 2019 cannot build this project.
  • Update the release configuration of the CharLS MSbuild project and enable address sanitizer.
  • Build the solution with Visual Studio 2022 17.8 or newer.
  • Run the LibFuzzerTest from the command line (-help=1) will show the options.

Linux\Windows (CMake)

Remark: Using LibFuzzer requires Clang or Visual Studio 2022

  • Enable the address sanitizer CMake option (CHARLS_ENABLE_ASAN)
  • Build the targets (RelWithDebInfo)
  • Run the LibFuzzerTest from the command line (-help=1) will show the options.