aboutsummaryrefslogtreecommitdiff
path: root/lib/header/fuzz/fuzz_targets/fuzz-target-header.rs
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-09-15 18:02:43 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-09-15 18:02:43 +0200
commit01bb4fee8c45caee757b3bdc5432fd88dbcdfca3 (patch)
tree859b047dec61af5f9f4b954f345ca421f35881e2 /lib/header/fuzz/fuzz_targets/fuzz-target-header.rs
parent1601d0353342230a2a93baa6f008bc16a10137a1 (diff)
downloadtools.nes-01bb4fee8c45caee757b3bdc5432fd88dbcdfca3.tar.gz
tools.nes-01bb4fee8c45caee757b3bdc5432fd88dbcdfca3.zip
fuzz: change names to have dashes instead of underscore
From the latest update of Rust's stable channel, this was raised as a bad format for fuzz names. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'lib/header/fuzz/fuzz_targets/fuzz-target-header.rs')
-rw-r--r--lib/header/fuzz/fuzz_targets/fuzz-target-header.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/header/fuzz/fuzz_targets/fuzz-target-header.rs b/lib/header/fuzz/fuzz_targets/fuzz-target-header.rs
new file mode 100644
index 0000000..794853a
--- /dev/null
+++ b/lib/header/fuzz/fuzz_targets/fuzz-target-header.rs
@@ -0,0 +1,7 @@
+#![no_main]
+
+use libfuzzer_sys::fuzz_target;
+
+fuzz_target!(|data: &[u8]| {
+ let _ = header::Header::try_from(data);
+});