Re: [Patch] net: fix an array index overflow

From: David Wagner
Date: Tue Dec 01 2009 - 11:06:00 EST


Amerigo Wang wrote:
> Don't use the address of an out-of-boundary element.

Why not? There is nothing wrong with using a pointer to an element
one-past-the-end in this way. It's idiomatic C.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/