From: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
To: davem@redhat.COM (David S. Miller)
Cc: linux-kernel@vger.kernel.org
Subject: Re: Minor net/core/sock.c security issue?
Date: Wed, 25 Jul 2001 02:24:55 +0400 (MSD) [thread overview]
Message-ID: <200107242224.CAA00437@mops.inr.ac.ru> (raw)
In-Reply-To: <15196.45004.237634.928656@pizda.ninka.net> from "David S. Miller" at Jul 24, 1 03:45:01 am
Hello!
> 1) Signedness, what you have discovered.
>
> 2) Arg evaluation.
Damn, I always assumed that min/max are macros and took into account #2,
which was painful sometimes. :-)
The fact that it is defined in sock.h (and the definition is truly
crazy, add #4: it is funny what happens on 64bit archs, when one of args
happens to be long)
> 1) have standard inline functions with names that suggest the
> signedness, much like Rusty's netfilter macros.
min/max are macros. I do not know how to make a valid inline
for it: cast to long has problems with unsigned longs, cast to unsigned long
have the same problems with signedness.
Alexey
next prev parent reply other threads:[~2001-07-25 16:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-23 22:24 Chris Evans
2001-07-23 23:14 ` David S. Miller
2001-07-24 3:02 ` Albert D. Cahalan
2001-07-24 3:41 ` David S. Miller
2001-07-24 4:55 ` Albert D. Cahalan
2001-07-24 22:24 ` Alexey Kuznetsov [this message]
2001-07-27 9:56 ` David S. Miller
2001-07-27 16:44 ` kuznet
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=200107242224.CAA00437@mops.inr.ac.ru \
--to=kuznet@ms2.inr.ac.ru \
--cc=davem@redhat.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 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®