summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-3234.rs
blob: c7d9d42bdbe235d6a42e64d85106a948ec3021f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
macro_rules! fuzz_target {
    (|$data:ident: &[u8]| $body:block) => {};
}

fuzz_target!(|data: &[u8]| {
    if let Ok(app_img) = AppImage::parse(data) {
        if let Ok(app_img) =
            app_img.sign_for_secureboot(include_str!("../../test-data/signing-key"))
        {
            assert!(app_img.is_signed());
            Gbl::from_app_image(app_img).to_bytes();
        }
    }
});