>>>>> "tombannink" == tombannink  <tombann...@gmail.com> writes:

 > From 0a45e40834eeb8fc42f74645be715ca14432a767 Mon Sep 17 00:00:00 2001
 > From: Tom Bannink <tombann...@gmail.com>
 > Date: Tue, 12 Apr 2022 11:15:41 +0200
 > Subject: [PATCH] Fix bug in ARM memset implementation

 > The ARM implementation of memset has a bug when the fill-value is negative 
 > or outside the
 > [0, 255] range. To reproduce:

Thanks!

 > +++ b/libc/string/arm/memset.S
 > @@ -32,6 +32,7 @@ memset:
 >      cmp     r2, #8          @ at least 8 bytes to do?
 >      bcc     2f
 
 > +    uxtb    r1, r1

uxtb is an ARMv6+ instruction, maybe use and instead for compatibility?

https://developer.arm.com/documentation/dui0489/i/arm-and-thumb-instructions/uxtb

-- 
Bye, Peter Korsgaard
_______________________________________________
devel mailing list -- devel@uclibc-ng.org
To unsubscribe send an email to devel-le...@uclibc-ng.org

Reply via email to