Skip to content

Commit 5746bf8

Browse files
Merge pull request #6085 from MicrosoftDocs/main
Auto Publish – main to live - 2025-09-17 05:03 UTC
2 parents 0f7e24b + 4171a71 commit 5746bf8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/sanitizers/asan-shadow-bytes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ One shadow byte describes how many bytes are currently accessible as follows:
1919
- 1-7 means one to seven bytes
2020
- Negative numbers encode context for the runtime to use for reporting diagnostics.
2121

22+
> [!NOTE]
23+
> By default, entries in the shadow memory are zero-initialized. Therefore, ASan assumes that the memory is _addressable_ by default, i.e. valid to read and write. The shadow bytes will be populated with non-zero values as the program executes and the lifetime of variables and other allocations come to an end.
24+
2225
### Shadow byte legend
2326

2427
Consider this shadow byte legend where all negative numbers are defined:

0 commit comments

Comments
 (0)