Re: [PATCH] C undefined behavior fix

jtv (jtv@xs4all.nl)
Thu, 3 Jan 2002 01:20:04 +0100


On Wed, Jan 02, 2002 at 04:07:39PM -0800, Richard Henderson wrote:
> On Wed, Jan 02, 2002 at 05:01:18PM -0700, Tom Rini wrote:
> > Yes, but doesn't -ffreestanding imply that gcc _can't_ assume this is
> > the standard library...
>
> Ignore strcpy. Yes, that's what visibly causing a failure here,
> but the bug is in the funny pointer arithmetic. Leave that in
> there and the compiler _will_ bite your ass sooner or later.

Thank you for taking it all and putting it in a nutshell.

Jeroen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/