Skip to content

Commit 7c71d0b

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 3d8e4b9 commit 7c71d0b

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
@@ -672,7 +672,7 @@ memserver_read(void *to, const void *from, size_t len) {
672672
memcpy(to, from, len);
673673
return len;
674674
} else {
675-
return 1;
675+
return -1;
676676
}
677677
}
678678
}

0 commit comments

Comments
 (0)