mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Willy Tarreau <willy@w.ods.org>
To: Renate Meijer <kleuske@xs4all.nl>
Cc: folkert@vanheusden.com, linux-kernel@vger.kernel.org
Subject: [BORED] Re: forkbombing Linux distributions
Date: Mon, 28 Mar 2005 22:44:11 +0200	[thread overview]
Message-ID: <20050328204411.GX30052@alpha.home.local> (raw)
In-Reply-To: <a1212af498cc4d77373b7be0db524347@xs4all.nl>

Please,

would you be so kind to stop debugging your fork-bombing tools with all
the list in CC ? I think that most of us are not interested in knowning
whether the cast is necessary or not before the malloc(). This is LKML,
not FBTML. There are lots of ways to locally DoS linux, you don't need
to fine tune your tools here in public.

Thanks in advance,
Willy

On Mon, Mar 28, 2005 at 10:35:00PM +0200, Renate Meijer wrote:
> 
> On Mar 28, 2005, at 9:39 PM, folkert@vanheusden.com wrote:
> 
> On Mar 28, 2005, at 9:39 PM, folkert@vanheusden.com wrote:
> 
> >>I already posted one, posts ago.
> >>>>[snip]
> >>>Imporved version:
> >>>[snip]
> >>>char *dummy = (char *)malloc(1);
> >>That cast is not supposed to be there, is it? (To pretake it: it's 
> >>bad.)
> >
> >What is so bad about it?
> 
> Read the FAQ at http://www.eskimo.com/~scs/C-faq/q7.7.html
> 
> Malloc() returns a void*, so casts are superfluous if stdlib.h is 
> included (as it should be). Hence if one typecasts the result of malloc 
> in order to suit any particular type, the real bug is probably a 
> lacking "#iinclude <stdlib.h>", which the cast (effectively) is hiding.
> 
> 
> 
> -
> 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/

  reply	other threads:[~2005-03-28 20:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-28 17:28 Matthieu Castet
2005-03-28 17:56 ` folkert
2005-03-28 19:33   ` Jan Engelhardt
2005-03-28 19:39     ` folkert
2005-03-28 20:35       ` Renate Meijer
2005-03-28 20:44         ` Willy Tarreau [this message]
2005-03-29 12:31 ` Natanael Copa
2005-03-30 23:46 ` Felipe Alfaro Solana
2005-03-31  6:55   ` Natanael Copa
2005-03-31  7:09     ` Jacek Łuczak

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=20050328204411.GX30052@alpha.home.local \
    --to=willy@w.ods.org \
    --cc=folkert@vanheusden.com \
    --cc=kleuske@xs4all.nl \
    --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®