Skip to content

chore: propagate sanitizer flags from rust toolchain invokation to native builds - #134

Open
cartercanedy wants to merge 1 commit into
HMIProject:mainfrom
cartercanedy:cc/propagate-sanitizer-flags
Open

cartercanedy wants to merge 1 commit into
HMIProject:mainfrom
cartercanedy:cc/propagate-sanitizer-flags

Conversation

@cartercanedy

Copy link
Copy Markdown

The CARGO_CFG_SANITIZER environment variable is set when -Zsanitizer=address is set in RUSTFLAGS. Properly setting the sanitizer flags for the C builds enables cross-language-boundary detection of use-after-frees, and will enable more comprehensive detection of invalid memory operations when consumers enable ASAN in their code.

see HMIProject/open62541#355 & HMIProject/open62541#359 for context.

@cartercanedy

Copy link
Copy Markdown
Author

@sgoll @uklotzde how are you guys feeling about this?

@uklotzde
uklotzde requested a review from sgoll October 19, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant