aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz/fuzz_targets/binary_reader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/fuzz_targets/binary_reader.rs')
-rw-r--r--fuzz/fuzz_targets/binary_reader.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/fuzz/fuzz_targets/binary_reader.rs b/fuzz/fuzz_targets/binary_reader.rs
new file mode 100644
index 0000000..6cd2ab9
--- /dev/null
+++ b/fuzz/fuzz_targets/binary_reader.rs
@@ -0,0 +1,13 @@
+#![no_main]
+#[macro_use] extern crate libfuzzer_sys;
+extern crate plist;
+
+use std::io::Cursor;
+use plist::Plist;
+use plist::binary::EventReader;
+
+fuzz_target!(|data: &[u8]| {
+ let cursor = Cursor::new(data);
+ let reader = EventReader::new(cursor);
+ let _ = Plist::from_events(reader);
+});