[PATCH] Fix alphaev6 stpcpy
Jakub Jelinek
jakub@redhat.com
Sun Dec 10 14:39:00 GMT 2000
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
More information about the Libc-hacker
mailing list