[lkml]   [1998]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: mmap bug?
       It seems that attempts to mmap a region of size zero causes
    mmap to return zero. Is this a bug?

    Since it doesn't return -1, it looks like success, but of
    course dereferencing this NULL pointer causes a crash.

    Why would you dereference it if you didn't specify any memory? It
    seems to me that this is valid kernel behavior, and that the program
    has the bug.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to

     \ /
      Last update: 2005-03-22 13:42    [W:0.018 / U:31.952 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site