Displaying posts tagged: memcmp

memcmp broken in the FreeBSD kernel

No Comments
I've spent a day tracking down a bug in a FreeBSD kernel module I'm developing, and to my surprise the bug was due to memcmp being broken! For those that don't know, memcmp is used to compare two byte strings and returns 0 if they are identical, a negative number of the first string is less ...