[compiler-rt] [sanitizer-common] [Darwin] Fix overlapping dyld segment addresses (PR #166005)
Andrew Haberlandt via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 5 11:07:25 PST 2025
================
@@ -445,6 +443,56 @@ bool MemoryMappingLayout::Next(MemoryMappedSegment *segment) {
return false;
}
+// NOTE: Verify expects to be called immediately after Reset(), since otherwise
+// it may miss some mappings. Verify will Reset() the layout after verification.
+bool MemoryMappingLayout::Verify() {
----------------
ndrewh wrote:
This is not straightforward as a static function because `data_` is a private member of `MemoryMappedSegment` which is only accessible inside `MemoryMappingLayout` because it is a `friend class`.
https://github.com/llvm/llvm-project/pull/166005
More information about the llvm-commits
mailing list