id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,blockedby,blocking,platform 4106,mmap() doesn't zero the last page,zooey,axeld,"According to POSIX, mmap() is supposed to fill the area in the last page that is not ""covered"" by the mapped file with zeros. Our mmap does not do this, which causes gcc's fixincl program to crash, as it relies on these zeros to be there in order to invoke strlen(). If there's no zero in the ""empty"" area of the last page, strlen will try to access the following page and segfault. The current implementation seems to just read the corresponding BFS block(s) until all pages have been filled, as fixincl always crashes with the same file, but will not crash on a copy of that file (which obviously happens to have a trailing zero somewhere). This is with r31642.",bug,closed,normal,R1,System/Kernel,R1/pre-alpha1,fixed,,grzegorz.dabrowski@… planche2k@…,,,All