SV: [PATCH] powerpc string.h memset, memcpy, memmove brocken
Joakim Tjernlund
joakim.tjernlund at transmode.se
Fri Mar 21 11:26:29 UTC 2008
Hello,
the ppc memset, memcpy, memmove from string.h didn't work for me. Busybox-Vi always got a segfault. I only debugged the memset.c. Memmove and memcpy were replaced by simpler functions.
The failure is in the "align" section. In the case that only n==1 characters had to be replaced and for an aligned adress there are remaining rem==3 spaces with n=n-rem; an overflow occurred.
I'm running a MPC5554.
greetings
Erik
Hi Erik
I had a quick look at your parth and it looks just fine. I barely got Internet access ATM so I can't apply it nor have a proper look.
Would you mind looking at the the remainning functions too?
Jocke
More information about the uClibc
mailing list