Skip to content

Commit 2478b34

Browse files
committed
Describe edge case with 48-bit video music awards
1 parent 9b747cd commit 2478b34

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ class SizeClassAllocator64 {
119119
VReport(3, "Max user virtual address: 0x%zx\n", MaxAddr);
120120
VReport(3, "Total space size for primary allocator: 0x%zx\n",
121121
TotalSpaceSize);
122+
// TODO: hypothetical edge case: on >48-bit VMA systems, Linux by default
123+
// maps as if it was a 48-bit VMA, but a sanitizer could
124+
// theoretically map beyond the 48-bit limit (N.B. 2**48 == 256TB).
122125
if (TotalSpaceSize >= MaxAddr) {
123126
// We can't easily adjust the requested heap size, because kSpaceSize is
124127
// const (for optimization) and used throughout the code.

0 commit comments

Comments
 (0)