[PATCH] powerpc string.h memset, memcpy, memmove brocken

Erik Sallmann erik.sallmann at esk.fraunhofer.de
Thu Mar 20 11:18:13 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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20080320/357b8fbf/attachment-0002.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc_memset_ppc.patch
Type: text/x-diff
Size: 331 bytes
Desc: uClibc_memset_ppc.patch
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20080320/357b8fbf/attachment.bin 


More information about the uClibc mailing list