3 ms·
In particular, the code snippet from the blog post, if (size && size > SIZE_MAX) { errno = ENOMEM; err(1, "overflow"); } is a total no
by sirclueless 13y ago
In particular, the code snippet from the blog post,
if (size && size > SIZE_MAX) {
errno = ENOMEM;
err(1, "overflow");
}
is a total no-op. It can't ever be true, the compiler might as well just remove the whole thing.