[PATCH] powerpc: Read buffer overflow

Segher Boessenkool segher at kernel.crashing.org
Tue Aug 4 06:15:30 EST 2009

> The change seems unnecessary since we only compute the address of the
> element before the bounds check, we don't actually access the
> element.  I believe that is legal in C.

If you have an array a[N], taking &a[0] .. &a[N] are legal C, everything
else is not.


More information about the Linuxppc-dev mailing list