summaryrefslogtreecommitdiff
path: root/fuzz/fuzz_targets/display_does_not_panic.rs
blob: f26a2689181bf6ebbe79a3138805222f1e71bd72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![no_main]
#[macro_use] extern crate libfuzzer_sys;
extern crate yaxpeax_ia64;

use yaxpeax_arch::{Decoder, U8Reader};

fuzz_target!(|data: &[u8]| {
    let ia64_decoder = yaxpeax_ia64::InstDecoder::default();

    let mut reader = U8Reader::new(data);

    if let Ok(inst) = ia64_decoder.decode(&mut reader) {
        let mut out = String::new();
        let res = format!("{inst}");
    }
});