summaryrefslogtreecommitdiff
path: root/fuzz/fuzz_targets/fuzz_target_vrrpv2.rs
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2024-01-31 14:39:06 +0530
committerSunil Nimmagadda <sunil@nimmagadda.net>2024-01-31 14:39:06 +0530
commit141fe942b909f48aeaf50668c321336975be0ad7 (patch)
treed0718a24b3261332b580467def94f7b66d5e75a5 /fuzz/fuzz_targets/fuzz_target_vrrpv2.rs
parentc9b3751f061b340e3e92aecd530dfc9d48f9e2cc (diff)
Fuzz vrrpv2::from_bytes
Diffstat (limited to 'fuzz/fuzz_targets/fuzz_target_vrrpv2.rs')
-rw-r--r--fuzz/fuzz_targets/fuzz_target_vrrpv2.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/fuzz/fuzz_targets/fuzz_target_vrrpv2.rs b/fuzz/fuzz_targets/fuzz_target_vrrpv2.rs
new file mode 100644
index 0000000..ec03ae4
--- /dev/null
+++ b/fuzz/fuzz_targets/fuzz_target_vrrpv2.rs
@@ -0,0 +1,8 @@
+#![no_main]
+
+use libfuzzer_sys::fuzz_target;
+use vrrpd::vrrpv2;
+
+fuzz_target!(|data: &[u8]| {
+ let _ = vrrpv2::from_bytes(data);
+});