[compiler-rt] [sanitizer-common] [Darwin] Fix overlapping dyld segment addresses (PR #166005)
Paddy McDonald via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 5 10:54:31 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() {
----------------
padriff wrote:
We can make it a static function in this file. If other platforms need to introduce something similar then it can be promoted to MemoryMappingLayout
https://github.com/llvm/llvm-project/pull/166005
More information about the llvm-commits
mailing list