We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aabdb8 commit 0152595Copy full SHA for 0152595
compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cpp
@@ -433,7 +433,8 @@ void MemoryMappingLayout::DumpListOfModules(
433
MemoryMappedSegmentData data;
434
segment.data_ = &data;
435
while (Next(&segment)) {
436
- if (segment.filename[0] == '\0') continue;
+ // skip the __PAGEZERO segment, its vmsize is 0
437
+ if (segment.filename[0] == '\0' || (segment.start == segment.end)) continue;
438
LoadedModule *cur_module = nullptr;
439
if (!modules->empty() &&
440
0 == internal_strcmp(segment.filename, modules->back().full_name())) {
0 commit comments