lkml.org 
[lkml]   [2005]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Off-by-one bug at unix_mkname ?
From
In article <Pine.LNX.4.61.0503281124450.18443@yvahk01.tjqt.qr> (at Mon, 28 Mar 2005 11:25:39 +0200 (MEST)), Jan Engelhardt <jengelh@linux01.gwdg.de> says:

>
> On Mar 28 2005 17:39, YOSHIFUJI Hideaki / 吉藤英明 wrote:
>
> >+ * This may look like an off by one error but it is
> >+ * a bit more subtle. 108 is the longest valid AF_UNIX
> >+ * path for a binding. sun_path[108] doesnt as such
> >+ * exist. However in kernel space we are guaranteed that
> >+ * it is a valid memory location in our kernel
> >+ * address buffer.
> >+ */
>
> Now, does 2.6. _still_ guarantee that 108 is a valid offset?

Yes, it does.

--yoshfuji
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-04-06 13:31    [from the cache]
©2003-2011 Jasper Spaans