Merge pull request #11529 from tianyuzhou95:albert/mmap-test

PiperOrigin-RevId: 738050948
This commit is contained in:
gVisor bot
2025-03-18 10:13:53 -07:00
+1 -1
View File
@@ -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);