diff --git a/test/syscalls/linux/mmap.cc b/test/syscalls/linux/mmap.cc index b07c3e4a3..020d7020d 100644 --- a/test/syscalls/linux/mmap.cc +++ b/test/syscalls/linux/mmap.cc @@ -1481,7 +1481,7 @@ TEST_P(MMapFileParamTest, NoSigBusOnPagesBeforeEOF) { SyscallSucceeds()); // The test passes if this survives. - auto* start = reinterpret_cast(addr + (kPageSize / 2) + 1); + auto* start = reinterpret_cast(addr); size_t len = strlen(kFileContents); if (prot() & PROT_WRITE) { std::copy(kFileContents, kFileContents + len, start);