tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] netbsd32 swapctl, round 4



On Sun, Feb 02, 2014 at 04:43:49PM +0100, Jean-Yves Migeon wrote:
> Even functions like calloc(3) are not required to check for the
> overflow themselves when you pass them (number of elements, sizeof
> elements).

It is required to, otherwise the return value would not be a pointer to
an array of the correct size.

Joerg


Home | Main Index | Thread Index | Old Index