www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Fatal flaw in MmFile on linux

I just found that std.mmfile has a bug that makes it impossible to use custom
page sizes on linux without getting segmentation faults. I tracked it down to
line 262 in mmfile.d:

# data = p[0..size];

should read

# data = p[0..initial_map];

(The windows version seems to be ok.)

Nick
Feb 16 2006