[klibc] bug on x86 in usr/klibc/memmove.c

H. Peter Anvin hpa at zytor.com
Mon Jul 7 16:06:18 PDT 2008


pageexec at freemail.hu wrote:
> Hello guys,
> 
> this:
> 
>   asm volatile("std ; rep ; movsb"
> 
> is not such a great idea without the corresponding cld at the end ;),
> it'll cause all kinds of funny memory corruption later (in my case i
> had to debug v86d to find the culprit).
> 
> cheers,
> 
>   PaX Team
> 

Right you are.

	-hpa



More information about the klibc mailing list