diff options
| -rw-r--r-- | Source/WTF/wtf/OSAllocatorPosix.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/WTF/wtf/OSAllocatorPosix.cpp b/Source/WTF/wtf/OSAllocatorPosix.cpp index f676b0393..fb24cd9ac 100644 --- a/Source/WTF/wtf/OSAllocatorPosix.cpp +++ b/Source/WTF/wtf/OSAllocatorPosix.cpp @@ -87,6 +87,7 @@ void* OSAllocator::reserveUncommitted(size_t bytes, Usage usage, bool writable, // 2nd half is good, release 1st half. if (munmap(result, bytes)) CRASH(); + result = reinterpret_cast<int8_t*>(result) + bytes; } else ASSERT_NOT_REACHED(); } |
