Skip to content

Commit 9207697

Browse files
committed
[Backtracing][Linux] Handle inaccessible memory properly in Docker.
Thanks to a missing `-` sign, we were returning garbage rather than indicating that the memory region in question was inaccessible. This mainly affects register dumps (since that's the time we expect to have to cope with out-of-bounds reads). rdar://117900760
1 parent 7f85215 commit 9207697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/CrashHandlerLinux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ memserver_read(void *to, const void *from, size_t len) {
668668
memcpy(to, from, len);
669669
return len;
670670
} else {
671-
return 1;
671+
return -1;
672672
}
673673
}
674674
}

0 commit comments

Comments
 (0)