Make sure the memory allocation routines check for negative sizes