[Issue 14968] New: Invalid mmfile length allowed on Linux

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Aug 26 15:06:34 PDT 2015


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: nobody at puremagic.com
          Reporter: rsw0x at rsw0x.me

>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/ngampbtrlokkajksryxp@forum.dlang.org

--


More information about the Digitalmars-d-bugs mailing list