summaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/fuzz/fuzz_targets/authcert.rs
blob: 40794b721e38f51428c85ecaae921577847d08f1 (plain)
1
2
3
4
5
6
7
8
9
#![no_main]
use libfuzzer_sys::fuzz_target;
use tor_netdoc::doc::authcert::AuthCert;

fuzz_target!(|data: &[u8]| {
    if let Ok(s) = std::str::from_utf8(data) {
        let _ = AuthCert::parse_multiple(s).count();
    }
});