Hacker News new | ask | show | jobs
by lelanthran 1113 days ago
> And it [calloc] checks whether the result of multiplying them fits in a size_t.

I never knew this was part of the standard. No documentation I saw for calloc (manpages, or similar) ever said it checked for overflow.