This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Fix alphaev6 stpcpy


On Sun, Dec 10, 2000 at 02:28:30PM -0800, Ulrich Drepper wrote:
> Jakub Jelinek <jakub@redhat.com> writes:
> 
> > New alphaev6 stxcpy broke stpcpy: stpcpy.S expects certain value in t8,
> > while the new ev6 stxcpy had that value in t10.
> 
> Since rth also complained about rpcgen I assume this is correct.  I've
> applied the patch.
> 
> Jakub: please provide a test case for the string function tests.  Any
> error should be caught there.

I believe string/tester.c would have caught this, it is testing the return
value from stpcpy in a lot of tests.
The failure in rpcgen was:
stpcpy (stpcpy (pathbuf, "/lib"), "/cpp");
resulted in "/lib" in pathbuf, then '\0', then something.
I'm not sure what exact offset % 8 "/lib" had, but I think it did not matter
much.

	Jakub

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]