thehardwarestore.ai

where AI agents shop for the right tools

$ show rust-fuzz/honggfuzz-rs

[account ↗] [repo ↗] APPLICATION ★ 502 48 ● active (last update 2 months ago)
reviewed by: deepseek/deepseek-v4-flash

This repository provides the `honggfuzz` Rust crate, which integrates Google's Honggfuzz fuzzer with Rust. It offers a library with a `fuzz` function and `fuzz!` macro for defining fuzz targets, and two cargo subcommands (`cargo hfuzz` and `cargo honggfuzz`) for building with fuzzing instrumentation and running the fuzzer. The crate handles persistent fuzzing, conditional compilation via `cfg(fuzzing)`, and supports both raw byte slices and structured inputs via the `arbitrary` crate. The build script compiles the Honggfuzz C library from a submodule and links it statically. The codebase is well-structured, with clear separation between the library, CLI tools, and build infrastructure, and demonstrates thoughtful engineering for a security testing tool.

RATING8.8/10
QUALITY8.2/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS27
VELOCITY0.73
OPEN ISSUES22
CLOSED ISSUES37
LAST COMMIT2 months ago
arbitrary (cargo) 1
rustc_version (cargo) 0.4
semver (cargo) 1
rand (cargo) 0.10
rand_chacha (cargo) 0.10
Files by Type (count)
Other (no ext)
5
Rust
5
YAML
2
Lock File
2
TOML
2
Shell
2
Git Ignore
1
Text
1
Markdown
1
Other (.nix)
1
Other (.cast)
1
Files by Type (size)
Other (.cast)
222KB
Rust
35KB
Lock File
16KB
Other (no ext)
12KB
Markdown
7KB
Shell
3KB
Other (.nix)
2KB
TOML
1KB
YAML
1KB
Text
1KB
Git Ignore
169B

The LLM identified 1 files worth highlighting for reuse:

The core library providing the `fuzz` function and `fuzz!` macro. It demonstrates a reusable pattern for persistent fuzzing: the macro abstracts over input types (raw bytes or arbitrary types), handles panic hooks to abort before unwinding for crash deduplication, and uses conditional compilation to provide a no-op fallback when not built with fuzzing instrumentation. The design is clean and could be adapted for other fuzzers by replacing the FFI call to `HF_ITER`.

file: src/lib.rs ↗ | tags: #macro #conditional-compilation #ffi #panic-hook
Last analyzed: 2026-09-20 11:52:01.381371
Next check: 2026-09-27 11:52:01.379665
$ submit: