Skip to content

segfault on linux #1

@jeremie-lg

Description

@jeremie-lg

Hi,
i think there's an error in the function MemoryMapped::close() on Linux system. When you don't remap the whole file, a SIGSEGV error is return by munmap() (MemoryMapped ln 156). I suggest to change ::munmap(_mappedView, _filesize); by ::munmap(_mappedView, _mappedSize); to fix this error.

jérémie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions