Bug 14994 – std.mmfile incorrectly handles map failure

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2015-09-01T11:28:00Z
Last change time
2015-10-04T18:20:41Z
Keywords
pull
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2015-09-01T11:28:23Z
If opening the file succeeds but the map fails, MmFile incorrectly handles the error condition and continues, pretending that everything is fine. This inevitably leads to a crash later when attempting to use the mapped data.
Comment #1 by dlang-bugzilla — 2015-09-01T11:38:13Z
Comment #2 by github-bugzilla — 2015-09-18T10:01:41Z
Comment #3 by github-bugzilla — 2015-10-04T18:20:41Z