add issue-3234 test
this issue is already resolved
This commit is contained in:
parent
4ed31b606d
commit
5e530980b7
14
tests/source/issue-3234.rs
Normal file
14
tests/source/issue-3234.rs
Normal file
@ -0,0 +1,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();
|
||||
}
|
||||
}
|
||||
|
||||
});
|
14
tests/target/issue-3234.rs
Normal file
14
tests/target/issue-3234.rs
Normal file
@ -0,0 +1,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();
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user