Skip to content

Commit b06663e

Browse files
Merge pull request #5133 from amyw-msft/patch-13
Update asan-known-issues.md
2 parents addc134 + 5e40353 commit b06663e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/sanitizers/asan-known-issues.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "AddressSanitizer known issues"
33
description: "Technical description of the AddressSanitizer for Microsoft C/C++ known issues."
4-
ms.date: 1/28/2025
4+
ms.date: 3/5/2025
55
helpviewer_keywords: ["AddressSanitizer known issues"]
66
---
77

@@ -23,8 +23,6 @@ These options and functionality are incompatible with [`/fsanitize=address`](../
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-
- [MFC](../mfc/mfc-concepts.md) using the optional [`alloc_dealloc_mismatch`](error-alloc-dealloc-mismatch.md) runtime option is unsupported.
27-
- [`_CrtDumpMemoryLeaks`](../c-runtime-library/reference/crtdumpmemoryleaks.md) is unsupported, and should be disabled.
2826

2927
## Standard library support
3028

@@ -56,6 +54,12 @@ int main() {
5654
}
5755
```
5856

57+
## Overriding operator new and delete
58+
59+
AddressSanitizer (ASAN) has a custom version of `operator new` and `operator delete` that it uses to find more 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+
61+
[MFC](../mfc/mfc-concepts.md) includes custom overrides for `operator new` and `operator delete` and so might miss errors like [`alloc_dealloc_mismatch`](error-alloc-dealloc-mismatch.md).
62+
5963
## Windows versions
6064

6165
As there are dependencies with specific Windows versions, support is focused on Windows 10. MSVC AddressSanitizer was tested on 10.0.14393 (RS1), and 10.0.21323 (prerelease insider build). [Report a bug](https://aka.ms/feedback/report?space=62) if you run into issues.

0 commit comments

Comments
 (0)