rust/tests/codegen/sanitizer
许杰友 Jieyou Xu (Joe) c6d36256a6
Rollup merge of #127483 - BertalanD:no_sanitize-global-var, r=rcvalle
Allow disabling ASan instrumentation for globals

AddressSanitizer adds instrumentation to global variables unless the [`no_sanitize_address`](https://llvm.org/docs/LangRef.html#global-attributes) attribute is set on them.

This commit extends the existing `#[no_sanitize(address)]` attribute to set this; previously it only had the desired effect on functions.

(cc https://github.com/rust-lang/rust/issues/39699)
2024-11-23 20:19:51 +08:00
..
cfi CFI: Append debug location to CFI blocks 2024-11-11 09:17:43 +00:00
kcfi Rename Receiver -> LegacyReceiver 2024-10-22 12:55:16 +00:00
aarch64-shadow-call-stack-with-fixed-x18.rs unconditionally allow shadow call-stack for AArch64 whenever fixed-x18 is applied 2024-08-09 19:35:02 +08:00
address-sanitizer-globals-tracking.rs Run rustfmt on `tests/codegen/`. 2024-05-31 15:56:43 +10:00
dataflow-instrument-functions.rs Run rustfmt on `tests/codegen/`. 2024-05-31 15:56:43 +10:00
kasan-emits-instrumentation.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
memory-track-origins.rs Run rustfmt on `tests/codegen/`. 2024-05-31 15:56:43 +10:00
memtag-attr-check.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
no-sanitize-inlining.rs Run rustfmt on `tests/codegen/`. 2024-05-31 15:56:43 +10:00
no-sanitize.rs Allow disabling ASan instrumentation for globals 2024-11-02 22:35:34 +01:00
riscv64-shadow-call-stack.rs riscv64imac: allow shadow call stack sanitizer 2024-08-29 21:48:48 +08:00
safestack-attr-check.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
sanitizer-recover.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
scs-attr-check.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00