|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 1/2] Arm32: correct string.h functions for "int" -> "unsigned char" conversion
Hi Jan, On 19/08/2022 08:49, Jan Beulich wrote: So the assumption here is the rest of the code will always use byte stores. Given that this issue has been present for a long time, I think it would be wiser to do the conversion at the start of the function.While Arm64 does so uniformly, for Arm32 only strchr() currently handles this properly. Add the necessary conversion also to strrchr(), memchr(), and memset(). As to the placement in memset(): Putting the new insn at the beginning of the function could perhaps be deemed more "obvious", but the code reachable without ever making it to the "1" label only ever does byte stores. The changes in memchr() and strrchr() looks fine to me.
Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |