aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz/fuzzers/binary_reader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/fuzzers/binary_reader.rs')
-rw-r--r--fuzz/fuzzers/binary_reader.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/fuzz/fuzzers/binary_reader.rs b/fuzz/fuzzers/binary_reader.rs
new file mode 100644
index 0000000..800ca21
--- /dev/null
+++ b/fuzz/fuzzers/binary_reader.rs
@@ -0,0 +1,12 @@
+#![no_main]
+extern crate libfuzzer_sys;
+extern crate plist;
+
+use std::io::Cursor;
+use plist::Plist;
+
+#[export_name="rust_fuzzer_test_input"]
+pub extern fn go(data: &[u8]) {
+ let cursor = Cursor::new(data);
+ let _ = Plist::read(cursor);
+}