https://issues.dlang.org/show_bug.cgi?id=14968

          Issue ID: 14968
           Summary: Invalid mmfile length allowed on Linux
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: [email protected]
          Reporter: [email protected]

>From the linux manpage on mmap:

"ERRORS
...
EINVAL (since Linux 2.6.12) length was 0."

Default length is 0 for mmfile, and 0 is an accepted number.
This should probably throw an exception.
See: http://forum.dlang.org/post/[email protected]

--

Reply via email to