Hacker News new | ask | show | jobs
by sirclueless 4519 days 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.