Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add target for sleep-parser #114

Merged
merged 1 commit into from
Apr 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ svgtypes = { git = "https://github.com/RazrFalcon/svgtypes" }
xmlparser = { git = "https://github.com/RazrFalcon/xmlparser" }
usvg = { git = "https://github.com/RazrFalcon/usvg" }
http = { git = "https://github.com/hyperium/http" }
sleep-parser = { git = "https://github.com/datrs/sleep-parser" }
7 changes: 7 additions & 0 deletions common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ extern crate svgtypes;
extern crate xmlparser;
extern crate usvg;
extern crate http;
extern crate sleep_parser;

#[inline(always)]
pub fn fuzz_brotli_read(data: &[u8]) {
Expand Down Expand Up @@ -956,3 +957,9 @@ pub fn fuzz_http_uri(data: &[u8]) {
}
}

#[inline(always)]
pub fn fuzz_sleep_parser_header(data: &[u8]) {
if let Ok(header) = sleep_parser::Header::from_vec(data) {
sleep_parser::Header::from_vec(&header.to_vec()).unwrap();
}
}