aboutsummaryrefslogtreecommitdiff
path: root/fuzz/fuzz_targets/displaysink_used_correctly.rs
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/fuzz_targets/displaysink_used_correctly.rs')
-rw-r--r--fuzz/fuzz_targets/displaysink_used_correctly.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/fuzz/fuzz_targets/displaysink_used_correctly.rs b/fuzz/fuzz_targets/displaysink_used_correctly.rs
index bd8d1db..4815047 100644
--- a/fuzz/fuzz_targets/displaysink_used_correctly.rs
+++ b/fuzz/fuzz_targets/displaysink_used_correctly.rs
@@ -4,6 +4,10 @@ extern crate yaxpeax_x86;
extern crate yaxpeax_arch;
fuzz_target!(|data: &[u8]| {
+ if data.len() > 15 {
+ return;
+ }
+
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();