Skip to content

Commit fc8d9d5

Browse files
Merge pull request #5986 from davidmrdavid/dev/dajusto/document-asan-pch-incompatibility
Document incompatibility with non-sanitized PCHs
2 parents d523990 + 3f1e4cd commit fc8d9d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/sanitizers/asan-known-issues.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ The following options and functionality are incompatible with [`/fsanitize=addre
2323
- [C++ AMP](../parallel/amp/cpp-amp-overview.md) is unsupported, and should be disabled.
2424
- [Universal Windows Platform](../cppcx/universal-windows-apps-cpp.md) (UWP) applications are unsupported.
2525
- [Special case list](https://clang.llvm.org/docs/SanitizerSpecialCaseList.html) files are unsupported.
26+
- [Precompiled headers built without `/fsanitize`address`](../build/creating-precompiled-header-files.md#consistency-rules-for-yc-and-yu) are unsupported.
2627

2728
## Standard library support
2829

@@ -56,7 +57,7 @@ int main() {
5657

5758
## Overriding operator new and delete
5859

59-
AddressSanitizer (ASAN) uses a custom version of `operator new` and `operator delete` to find allocation errors like [`alloc_dealloc_mismatch`](error-alloc-dealloc-mismatch.md). Running the linker with [`/INFERASANLIBS`](../build/reference/inferasanlibs.md) ensures that ASAN's `new`/`delete` override has low precedence, so that the linker chooses any `operator new` or `operator delete` overrides in other libraries over ASAN's custom versions. When this happens, ASAN may not be able to catch some errors that rely on its custom `operator new` and `operator delete`.
60+
AddressSanitizer (ASan) uses a custom version of `operator new` and `operator delete` to find allocation errors like [`alloc_dealloc_mismatch`](error-alloc-dealloc-mismatch.md). Running the linker with [`/INFERASANLIBS`](../build/reference/inferasanlibs.md) ensures that ASan's `new`/`delete` override has low precedence, so that the linker chooses any `operator new` or `operator delete` overrides in other libraries over ASan's custom versions. When this happens, ASan may not be able to catch some errors that rely on its custom `operator new` and `operator delete`.
6061

6162
[MFC](../mfc/mfc-concepts.md) includes custom overrides for `operator new` and `operator delete` and might miss errors like [`alloc_dealloc_mismatch`](error-alloc-dealloc-mismatch.md).
6263

0 commit comments

Comments
 (0)