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