All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: kuznet@ms2.inr.ac.ru
To: balbir_soni@hotmail.COM (Balbir Singh)
Cc: linux-kernel@vger.kernel.org
Subject: Re: [BUG] Suspected bug in getpeername and getsockname
Date: Thu, 17 Jan 2002 23:24:27 +0300 (MSK)	[thread overview]
Message-ID: <200201172024.XAA04744@ms2.inr.ac.ru> (raw)
In-Reply-To: <F96rPJjUsZ6G7KCk5sm0001ad67@hotmail.com> from "Balbir Singh" at Jan 17, 2 07:45:00 pm

Hello!

> The protocol specific code would like to look at what
> the user passed.

For what purpose?

Protocol has no rights to use this length, because user has right
to pass buffer of any length and address will be simply truncated.
And the truncation is made by net/socket.c, so that protocols need
not worry about this.

Alexey

  reply	other threads:[~2002-01-17 20:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-17 16:27 [BUG] Suspected bug in getpeername and getsockname Balbir Singh
2002-01-17 20:24 ` kuznet [this message]
2002-01-17 21:11 ` David S. Miller
  -- strict thread matches above, loose matches on Subject: below --
2002-01-18  0:05 Balbir Singh
2002-01-17 23:35 Balbir Singh
2002-01-17 23:38 ` David S. Miller
2002-01-17 23:20 Balbir Singh
2002-01-17 23:26 ` David S. Miller
2002-01-17 22:11 Balbir Singh
2002-01-17 22:30 ` David S. Miller
2002-01-16  0:51 Balbir Singh
2002-01-17  0:54 ` David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200201172024.XAA04744@ms2.inr.ac.ru \
    --to=kuznet@ms2.inr.ac.ru \
    --cc=balbir_soni@hotmail.COM \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.