seanmonstar / httparse

A push parser for the HTTP 1.x protocol in Rust.
https://docs.rs/httparse
Apache License 2.0
569 stars 110 forks source link

Basic fuzzing using cargo-fuzz #80

Closed ArniDagur closed 3 years ago

ArniDagur commented 3 years ago

Reading https://lobste.rs/s/bfjdfd/rust_curl_with_hyper#c_r8wiua made me curious to do some basic fuzzing on this crate using cargo-fuzz. None of the included targets found anything interesting though, which is good. Perhaps we should try to target the SIMD code directly, by exposing it publicly with a fuzzing feature or something like that?

seanmonstar commented 3 years ago

Thanks for adding these! It'd also be great to get some more specific testing of the SIMD parsers. I believe they can be forcefully enabled or disabled with environment variables in the build script.