You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#![feature(plugin)]#![plugin(afl_coverage_plugin)]externcrate afl_coverage;externcrate httparse;use std::io::{self,Read};fn main(){letmut input = String::new();let result = io::stdin().read_to_string(&mut input);if result.is_ok(){/* { let mut headers = [httparse::EMPTY_HEADER; 16]; let mut req = httparse::Request::new(&mut headers); req.parse(input.as_bytes()); }*/{letmut headers = [httparse::EMPTY_HEADER;16];letmut res = httparse::Response::new(&mut headers);
res.parse(input.as_bytes());}}
input: (this is encoded in base64, decode it before feeding it in)
SFRUUC8xLjESMjAw
error:
root@vultr:~/afl-staging-area2# cargo run < outputs/crashes/id:000002,sig:04,src:000001,op:havoc,rep:2
Running `target/debug/afl-staging-area2`
thread '<main>' panicked at 'arithmetic operation overflowed', /root/httparse/src/lib.rs:34
An unknown error occurred
To learn more, run the command again with --verbose.
code:
input: (this is encoded in base64, decode it before feeding it in)
error:
This bug was found using https://github.com/kmcallister/afl.rs 👍
The text was updated successfully, but these errors were encountered: