Bug#159633: strncpy on alpha/libc broken
On Mon, Sep 09, 2002 at 08:39:56AM +1000, Herbert Xu wrote:
> On Mon, Sep 09, 2002 at 07:34:31AM +1000, herbert wrote:
> > On Sun, Sep 08, 2002 at 11:57:36AM -0400, Daniel Jacobowitz wrote:
> > >
> > > This patch is incorrect, unfortunately:
> > >
> > > {standard input}:182: Error: symbol `xdr_bp_whoambp_wh' is already defined
> > > {standard input}:187: Error: symbol `$xdr_bp_whoambp_wh..ng' is already defined
> >
> > This error doesn't seem related to stxncpy, but I'm doing a glibc build
> > now to see if I can reproduce it.
>
> OK, I see what you mean now. However, there is still another SEGV
> to fix. The first jump to u_head could cause two loads even if you're
> just copying one byte.
I think I forgot to CC you - did you see my followup patch? It's not
pretty, but I couldn't find a simpler way to do it. The last load may
be superfluous but the only way to tell is combining the source
misalignment with (count % 8).
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
Reply to: