Skip to main content

fuzz_process_standard_json_content

Function fuzz_process_standard_json_content 

Source
pub fn fuzz_process_standard_json_content(input: &[u8]) -> Result<(), String>
Expand description

Fuzz-only public entry point for the Solidity standard-JSON input parser.

Accepts arbitrary bytes, converts to UTF-8 (returns Err on invalid UTF-8 rather than panicking), and invokes the internal standard-JSON processor with safe defaults (no output path, default options). The function is total — it must never panic. Callers (the fuzz target) ignore the returned Result and only watch for panics.

This wrapper exists so fuzz/fuzz_targets/fuzz_target_standard_json.rs can exercise the standard-JSON parser without touching pub(crate) internals. See that target for the libfuzzer harness.