On Mon, Jun 12, 2017 at 08:14:44PM +0000, Mark Johnston wrote:
> +int
> +uuidcmp(const struct uuid *uuid1, const struct uuid *uuid2)
> +{
> +
> + return (memcmp(uuid1, uuid2, sizeof(struct uuid)));
> +}
This is unsafe. The function operation depends on the ABI properties
that there is no padding either between members, or at the end of
the structure. Why not use by-member comparision ?
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"