[compiler-rt] [sanitizer-common] [Darwin] Fix overlapping dyld segment addresses (PR #166005)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 5 09:23:30 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() {
----------------
vitalybuka wrote:
Can you make it a static function, with parameters of what is needed
and avoid Verify in the header?
Unless there is a plan to extend it to other platforms?
https://github.com/llvm/llvm-project/pull/166005
More information about the llvm-commits
mailing list