• Alexandr Ilin's avatar
    Use actual mapping size when unmapping a region · 119205fc
    Alexandr Ilin authored
    SharedMemoryMapping::Unmap() call passes a mapping size to the munmap() or a
    similar system call on some platforms. The actual size of a mapping is stored
    in the SharedMemoryMapping::mapped_size_ but the SharedMemoryMapping::size_
    which contains the logical size of the mapping has been mistakenly used instead.
    
    This bug is not severe though because the mapped_size_/size_ mismatch exists
    only on Windows and Windows system call for unmapping doesn't accept the size.
    
    Change-Id: Id25c3dce6f0e2ea78d885e76e936572d4e5d2d52
    Reviewed-on: https://chromium-review.googlesource.com/1241054Reviewed-by: default avatarErik Chen <erikchen@chromium.org>
    Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
    Commit-Queue: Alexandr Ilin <alexilin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#593695}
    119205fc
shared_memory_mapping.cc 3.45 KB