Skip to content

Commit

Permalink
Merge #114
Browse files Browse the repository at this point in the history
114: Add target for sleep-parser r=frewsxcv a=killercup



Co-authored-by: Pascal Hertleif <killercup@gmail.com>
  • Loading branch information
bors[bot] and killercup committed Apr 28, 2018
2 parents 06f6ed6 + 370f374 commit 691792a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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();
}
}

0 comments on commit 691792a

Please sign in to comment.