From 01bb4fee8c45caee757b3bdc5432fd88dbcdfca3 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 15 Sep 2026 18:02:43 +0200 Subject: fuzz: change names to have dashes instead of underscore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- lib/xixanta/fuzz/Cargo.toml | 8 ++++---- .../fuzz/fuzz_targets/fuzz-target-assembler.rs | 23 ++++++++++++++++++++++ .../fuzz/fuzz_targets/fuzz-target-parser.rs | 8 ++++++++ .../fuzz/fuzz_targets/fuzz_target_assembler.rs | 23 ---------------------- .../fuzz/fuzz_targets/fuzz_target_parser.rs | 8 -------- 5 files changed, 35 insertions(+), 35 deletions(-) create mode 100644 lib/xixanta/fuzz/fuzz_targets/fuzz-target-assembler.rs create mode 100644 lib/xixanta/fuzz/fuzz_targets/fuzz-target-parser.rs delete mode 100644 lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs delete mode 100644 lib/xixanta/fuzz/fuzz_targets/fuzz_target_parser.rs (limited to 'lib/xixanta') diff --git a/lib/xixanta/fuzz/Cargo.toml b/lib/xixanta/fuzz/Cargo.toml index 0e52091..9beab10 100644 --- a/lib/xixanta/fuzz/Cargo.toml +++ b/lib/xixanta/fuzz/Cargo.toml @@ -17,15 +17,15 @@ libfuzzer-sys = "0.4" path = ".." [[bin]] -name = "fuzz_target_parser" -path = "fuzz_targets/fuzz_target_parser.rs" +name = "fuzz-target-parser" +path = "fuzz_targets/fuzz-target-parser.rs" test = false doc = false bench = false [[bin]] -name = "fuzz_target_assembler" -path = "fuzz_targets/fuzz_target_assembler.rs" +name = "fuzz-target-assembler" +path = "fuzz_targets/fuzz-target-assembler.rs" test = false doc = false bench = false diff --git a/lib/xixanta/fuzz/fuzz_targets/fuzz-target-assembler.rs b/lib/xixanta/fuzz/fuzz_targets/fuzz-target-assembler.rs new file mode 100644 index 0000000..649b017 --- /dev/null +++ b/lib/xixanta/fuzz/fuzz_targets/fuzz-target-assembler.rs @@ -0,0 +1,23 @@ +#![no_main] + +use libfuzzer_sys::fuzz_target; +use xixanta::assembler::assemble; + +fuzz_target!(|data: &[u8]| { + let _ = assemble( + data, + "empty", + &[], + &xixanta::SourceInfo::default(), + false, + false, + ); + let _ = assemble( + data, + "empty", + &[], + &xixanta::SourceInfo::default(), + false, + true, + ); +}); diff --git a/lib/xixanta/fuzz/fuzz_targets/fuzz-target-parser.rs b/lib/xixanta/fuzz/fuzz_targets/fuzz-target-parser.rs new file mode 100644 index 0000000..a68b9e2 --- /dev/null +++ b/lib/xixanta/fuzz/fuzz_targets/fuzz-target-parser.rs @@ -0,0 +1,8 @@ +#![no_main] + +use libfuzzer_sys::fuzz_target; + +fuzz_target!(|data: &[u8]| { + let mut parser = xixanta::parser::Parser::default(); + let _ = parser.parse(data, &xixanta::SourceInfo::default()); +}); diff --git a/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs b/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs deleted file mode 100644 index 649b017..0000000 --- a/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs +++ /dev/null @@ -1,23 +0,0 @@ -#![no_main] - -use libfuzzer_sys::fuzz_target; -use xixanta::assembler::assemble; - -fuzz_target!(|data: &[u8]| { - let _ = assemble( - data, - "empty", - &[], - &xixanta::SourceInfo::default(), - false, - false, - ); - let _ = assemble( - data, - "empty", - &[], - &xixanta::SourceInfo::default(), - false, - true, - ); -}); diff --git a/lib/xixanta/fuzz/fuzz_targets/fuzz_target_parser.rs b/lib/xixanta/fuzz/fuzz_targets/fuzz_target_parser.rs deleted file mode 100644 index a68b9e2..0000000 --- a/lib/xixanta/fuzz/fuzz_targets/fuzz_target_parser.rs +++ /dev/null @@ -1,8 +0,0 @@ -#![no_main] - -use libfuzzer_sys::fuzz_target; - -fuzz_target!(|data: &[u8]| { - let mut parser = xixanta::parser::Parser::default(); - let _ = parser.parse(data, &xixanta::SourceInfo::default()); -}); -- cgit v1.2.3