Skip to content

libFuzzer fuzz target #7

Description

@MihaiStreames

Goal

Add a libFuzzer fuzz target exercising push() and propagation paths.

Setup

The CMake scaffold already exists, gated behind ANYHOW_BUILD_FUZZ:

option(ANYHOW_BUILD_FUZZ "Build libFuzzer fuzz targets (requires clang + -fsanitize=fuzzer)" OFF)

Work remaining

  • Write tests/fuzz_anyhow.cpp with a LLVMFuzzerTestOneInput entry point
  • Exercise fail(), push(), context(), downcast() on fuzz-generated input
  • Gate in CI behind a separate clang job with -fsanitize=fuzzer,address,undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    ciBuild, CMake, toolingtech-debtWorth revisiting later

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions