News for hackers. Stuff that matters.
Re:A bug story: data alignment in C on x86 (2016) by tedunangst on Tuesday September 04, 2018 @09:55PM (#17914528)
strlen(null) is pretty straightforward, although being a pure function the compiler might rearrange things.

    if (!s) puts("hi");
    strlen(s);
I don't think that's guaranteed to print hi if s is null.

More fun is memset(0,0,0) which is technically verboten.

There are no comments on this comment yet.