Subject: Re: CVS commit: basesrc/lib/libc/stdlib
To: Jaromir Dolecek <jdolecek@netbsd.org>
From: None <itojun@iijlab.net>
List: tech-userlevel
Date: 07/30/2002 21:26:45
>I don't think such babysitting should be done, I don't think such
>gratuitous change should be done. I'd go as far as saying that
>this change is broken. Let's discuss this change on tech-userlevel.
then what should happen if
x = calloc(0x10000000, 17);
on 32bit arch? it sure will cause integer overflow.
the commit will make it return NULL (allocation failure).
itojun