mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Off-by-one bug at unix_mkname ?
@ 2005-03-28  8:00 Tetsuo Handa
  2005-03-28  8:12 ` Willy Tarreau
  2005-03-28  8:21 ` YOSHIFUJI Hideaki / 吉藤英明
  0 siblings, 2 replies; 8+ messages in thread
From: Tetsuo Handa @ 2005-03-28  8:00 UTC (permalink / raw)
  To: linux-kernel

Hi,

It seems to me that the following code is off-by-one bug.

http://lxr.linux.no/source/net/unix/af_unix.c#L191
http://lxr.linux.no/source/net/unix/af_unix.c?v=2.4.28#L182

I think
((char *)sunaddr)[len]=0;
should be
((char *)sunaddr)[len-1]=0;


Thanks.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-03-28  9:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-28  8:00 Off-by-one bug at unix_mkname ? Tetsuo Handa
2005-03-28  8:12 ` Willy Tarreau
2005-03-28  8:21 ` YOSHIFUJI Hideaki / 吉藤英明
2005-03-28  8:39   ` YOSHIFUJI Hideaki / 吉藤英明
2005-03-28  8:48     ` YOSHIFUJI Hideaki / 吉藤英明
2005-03-28  8:52       ` Tetsuo Handa
2005-03-28  8:49     ` Chris Wedgwood
     [not found]     ` <Pine.LNX.4.61.0503281124450.18443@yvahk01.tjqt.qr>
2005-03-28  9:33       ` YOSHIFUJI Hideaki / 吉藤英明

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®