aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz/fuzzers/binary_reader.rs
blob: 800ca21d50feab4faa581fd049e12e01e1fce18c (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
}