Re: Writing to mmaped region cause segfault

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ted Unangst
Date: Wednesday, November 3, 2010 - 9:44 am

On Wed, Nov 3, 2010 at 8:33 AM, Alexey Suslikov
<alexey.suslikov@gmail.com> wrote:
CoreShowChannels",

mmapping l + 1 doesn't really make sense, you can only map the bytes
that are in the file.  the call succeeds, but you aren't going to grow
the file or get more memory.  if you want a null terminated string,
either null terminate the file or copy it to a buffer in memory.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Writing to mmaped region cause segfault, Alexey Suslikov, (Wed Nov 3, 4:18 am)
Re: Writing to mmaped region cause segfault, Otto Moerbeek, (Wed Nov 3, 5:12 am)
Re: Writing to mmaped region cause segfault, Otto Moerbeek, (Wed Nov 3, 5:23 am)
Re: Writing to mmaped region cause segfault, Alexey Suslikov, (Wed Nov 3, 5:33 am)
Re: Writing to mmaped region cause segfault, Otto Moerbeek, (Wed Nov 3, 6:47 am)
Re: Writing to mmaped region cause segfault, Ariane van der Steldt, (Wed Nov 3, 6:59 am)
Re: Writing to mmaped region cause segfault, Ted Unangst, (Wed Nov 3, 9:44 am)