lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070325163013.GW741@vanheusden.com>
Date:	Sun, 25 Mar 2007 18:30:34 +0200
From:	Folkert van Heusden <folkert@...heusden.com>
To:	Vignesh Babu BM <vignesh.babu@...ro.com>
Cc:	Stephane Eranian <eranian@....hp.com>,
	linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
	ak@...e.de, Jan Engelhardt <jengelh@...ux01.gwdg.de>
Subject: Re: kmalloc() with size zero

> > I'd say "feature", glibc's malloc also returns an address on
> > malloc(0).
> > 
> This is implementation defined-the standard allows for return of either
> null or an address.

Entirely for entertainment: AIX (5.3) returns NULL, IRIX returns a valid
address.


Folkert van Heusden

-- 
MultiTail är en flexibel redskap för att fälja logfilar, utför av
commandoer, filtrera, ge färg, sammanfoga, o.s.v. följa.
http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ