Skip to content

Commit 3f69d6b

Browse files
authored
Merge pull request #30260 from milseman/assert_san
[stdlib] Disable assertion tripping up ASAN
2 parents c4f1b83 + fd468d0 commit 3f69d6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/StringStorage.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ extension __StringStorage {
485485

486486
// Check that capacity end matches our notion of unused storage, and also
487487
// checks that breadcrumbs were dutifully aligned.
488-
_internalInvariant(UnsafeMutablePointer<UInt8>(_realCapacityEnd)
489-
== unusedStorage.baseAddress! + (unusedStorage.count + 1))
488+
// _internalInvariant(UnsafeMutablePointer<UInt8>(_realCapacityEnd)
489+
// == unusedStorage.baseAddress! + (unusedStorage.count + 1))
490490
}
491491
#endif // INTERNAL_CHECKS_ENABLED
492492
}

0 commit comments

Comments
 (0)