diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-18 12:03:46 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-18 12:03:46 +0100 |
| commit | 82c5c350e569d77e2b05321cda553f388d948aa4 (patch) | |
| tree | 98c8e56e73a92068d3c7b59dc7aac5b5c6fc5926 /lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs | |
| parent | dbee63338fda39170118e3ab1f66637a690f5542 (diff) | |
| download | tools.nes-82c5c350e569d77e2b05321cda553f388d948aa4.tar.gz tools.nes-82c5c350e569d77e2b05321cda553f388d948aa4.zip | |
Rename xixanta's fuzz targets
They were named with increasing numbers due to the fact that that's the
default behaviour from cargo fuzz's command. So, just rename them to
proper human-readable names.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.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 | 10 |
1 files changed, 10 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..111bae9 --- /dev/null +++ b/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs @@ -0,0 +1,10 @@ +#![no_main] + +use libfuzzer_sys::fuzz_target; +use xixanta::assembler::Assembler; +use xixanta::mapping::EMPTY; + +fuzz_target!(|data: &[u8]| { + let mut asm = Assembler::new(EMPTY.to_vec()); + let _ = asm.assemble(data); +}); |
