aboutsummaryrefslogtreecommitdiff
path: root/fuzz/fuzz_targets/decode_does_not_panic.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-06-23 23:13:03 -0700
committeriximeow <me@iximeow.net>2024-06-23 23:25:46 -0700
commit238d65c98b2983f87c89f78a793ba7c56dcf7b01 (patch)
treeca2d08b8c60c6fbe635ca886f85e77ead5571078 /fuzz/fuzz_targets/decode_does_not_panic.rs
parent577b8e89849db33427e4be961997ad7af5e048f1 (diff)
update yaxpeax-arch to 0.3.1, fix fuzz target warnings
Diffstat (limited to 'fuzz/fuzz_targets/decode_does_not_panic.rs')
-rw-r--r--fuzz/fuzz_targets/decode_does_not_panic.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/fuzz/fuzz_targets/decode_does_not_panic.rs b/fuzz/fuzz_targets/decode_does_not_panic.rs
index 5e6c15d..fd6efec 100644
--- a/fuzz/fuzz_targets/decode_does_not_panic.rs
+++ b/fuzz/fuzz_targets/decode_does_not_panic.rs
@@ -6,7 +6,7 @@ fuzz_target!(|data: &[u8]| {
let x86_64_decoder = yaxpeax_x86::long_mode::InstDecoder::default();
let x86_32_decoder = yaxpeax_x86::protected_mode::InstDecoder::default();
let x86_16_decoder = yaxpeax_x86::real_mode::InstDecoder::default();
- drop(x86_64_decoder.decode_slice(data));
- drop(x86_32_decoder.decode_slice(data));
- drop(x86_16_decoder.decode_slice(data));
+ x86_64_decoder.decode_slice(data).expect("is ok");
+ x86_32_decoder.decode_slice(data).expect("is ok");
+ x86_16_decoder.decode_slice(data).expect("is ok");
});