mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #11529 from tianyuzhou95:albert/mmap-test
PiperOrigin-RevId: 738050948
This commit is contained in:
@@ -1481,7 +1481,7 @@ TEST_P(MMapFileParamTest, NoSigBusOnPagesBeforeEOF) {
|
||||
SyscallSucceeds());
|
||||
|
||||
// The test passes if this survives.
|
||||
auto* start = reinterpret_cast<volatile char*>(addr + (kPageSize / 2) + 1);
|
||||
auto* start = reinterpret_cast<volatile char*>(addr);
|
||||
size_t len = strlen(kFileContents);
|
||||
if (prot() & PROT_WRITE) {
|
||||
std::copy(kFileContents, kFileContents + len, start);
|
||||
|
||||
Reference in New Issue
Block a user