diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-09-15 18:02:43 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-09-15 18:02:43 +0200 |
| commit | 01bb4fee8c45caee757b3bdc5432fd88dbcdfca3 (patch) | |
| tree | 859b047dec61af5f9f4b954f345ca421f35881e2 /lib/xixanta/fuzz/fuzz_targets/fuzz-target-assembler.rs | |
| parent | 1601d0353342230a2a93baa6f008bc16a10137a1 (diff) | |
| download | tools.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/xixanta/fuzz/fuzz_targets/fuzz-target-assembler.rs')
| -rw-r--r-- | lib/xixanta/fuzz/fuzz_targets/fuzz-target-assembler.rs | 23 |
1 files changed, 23 insertions, 0 deletions
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, + ); +}); |
