From 8e7993a63e32981757c4d65fe6519439dde97d8e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 2 Sep 2025 16:40:38 +0200 Subject: assembler: Add support for asan:reserve,ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the initial support for both directives for the address sanitizer. Note that asan:weak has been moved into asan:ignore, which is not exactly the same but for now it should suffice. Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs | 3 ++- lib/xixanta/fuzz/fuzz_targets/fuzz_target_parser.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/xixanta/fuzz') diff --git a/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs b/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs index ff389a1..72077d9 100644 --- a/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs +++ b/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs @@ -4,5 +4,6 @@ use libfuzzer_sys::fuzz_target; use xixanta::assembler::assemble; fuzz_target!(|data: &[u8]| { - let _ = assemble(data, "empty", &[], xixanta::SourceInfo::default()); + let _ = assemble(data, "empty", &[], &xixanta::SourceInfo::default(), false); + let _ = assemble(data, "empty", &[], &xixanta::SourceInfo::default(), true); }); diff --git a/lib/xixanta/fuzz/fuzz_targets/fuzz_target_parser.rs b/lib/xixanta/fuzz/fuzz_targets/fuzz_target_parser.rs index da8a350..a68b9e2 100644 --- a/lib/xixanta/fuzz/fuzz_targets/fuzz_target_parser.rs +++ b/lib/xixanta/fuzz/fuzz_targets/fuzz_target_parser.rs @@ -4,5 +4,5 @@ use libfuzzer_sys::fuzz_target; fuzz_target!(|data: &[u8]| { let mut parser = xixanta::parser::Parser::default(); - let _ = parser.parse(data, xixanta::SourceInfo::default()); + let _ = parser.parse(data, &xixanta::SourceInfo::default()); }); -- cgit v1.2.3