diff options
| author | Edward Barnard | 2017-03-06 21:07:19 +0000 |
|---|---|---|
| committer | Edward Barnard | 2017-03-06 21:07:19 +0000 |
| commit | e322e26b7e8c3dbfcba5c6142ca7559b63fc1652 (patch) | |
| tree | cd80c7ac9c3e170eadf5fc5ab928a77f06e57219 /fuzz/fuzzers/xml_reader.rs | |
| parent | 62977a504825f12126aa53c3d5cd8affc95c4a7c (diff) | |
| download | rust-plist-e322e26b7e8c3dbfcba5c6142ca7559b63fc1652.tar.bz2 | |
Fuzz the binary and xml parsers separately.
Diffstat (limited to 'fuzz/fuzzers/xml_reader.rs')
| -rw-r--r-- | fuzz/fuzzers/xml_reader.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fuzz/fuzzers/xml_reader.rs b/fuzz/fuzzers/xml_reader.rs new file mode 100644 index 0000000..3901b25 --- /dev/null +++ b/fuzz/fuzzers/xml_reader.rs @@ -0,0 +1,14 @@ +#![no_main] +extern crate libfuzzer_sys; +extern crate plist; + +use std::io::Cursor; +use plist::Plist; +use plist::xml::EventReader; + +#[export_name="rust_fuzzer_test_input"] +pub extern fn go(data: &[u8]) { + let cursor = Cursor::new(data); + let reader = EventReader::new(cursor); + let _ = Plist::from_events(reader); +}
\ No newline at end of file |
