From 6f58e4ab8d90166cac4e4da269a77c5134f12f1e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 9 Jul 2026 22:07:47 +0200 Subject: Add support for the asan:fixed-segments comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This magic comment allows for the definition of segments that are fixed and for which references are always safe. This goes in tandem with the asan:safe comment, which can then be used more sporadically. Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/src/node.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/xixanta/src/node.rs') diff --git a/lib/xixanta/src/node.rs b/lib/xixanta/src/node.rs index 4f25158..649f333 100644 --- a/lib/xixanta/src/node.rs +++ b/lib/xixanta/src/node.rs @@ -276,6 +276,7 @@ pub enum CommentType { AsanStack(Range), AsanIgnore, AsanSafe, + AsanFixedSegments(Vec), } /// The PNode type. @@ -380,6 +381,7 @@ impl fmt::Display for NodeType { CommentType::AsanStack(_) => write!(f, ";; asan:stack"), CommentType::AsanIgnore => write!(f, ";; asan:ignore"), CommentType::AsanSafe => write!(f, ";; asan:safe"), + CommentType::AsanFixedSegments(_) => write!(f, ";; asan:fixed-segments"), }, } } -- cgit v1.2.3