On Mon, 25 Aug 2008, Linus Torvalds wrote: > > But if it can overflow, I actually think it makes more sense to test for > something smaller than the "exact" overflow. A key can't reasonably be all > that long _anyway_, so it's probably better to test for something _much_ > smaller. IOW, I think it would make _more_ sense to just declare some "key size max", and do something like #define SCTP_AUTH_KEY_SIZE (65536) .. if (key_len > SCTP_AUTH_KEY_SIZE) return -EINVAL; kind of thing. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-sctp" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html