|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v1 1/1] arm64: Fix strrchr() matching of null terminator
Hi Edgar and Jan, On 19/05/2026 07:40, Jan Beulich wrote: >>>> The ARM64 assembly version stopped as soon as it loaded the terminator andOn 19.05.2026 01:43, Edgar E. Iglesias wrote:The generic Xen strrchr() implementation returns a pointer to the string terminator when searching for '\0', matching the standard C semantics.
+1 I am interested to know the use-case for this change. Is this for compliance or real issue? If the latter, can we add some details. It might also be worth to write a selftest to avoid any regression (in particular if we decide to diverge from Linux). Compare the loaded byte against the requested character before deciding whether to stop at the terminator, so the terminator itself can be returned when it is the requested character.Nit: "..., so a pointer to the terminator ...". We are trying to keep the core implementation in lib the same as linux (see arch/arm/README.LinuxPrimitives). I would prefer if this is also first committed to Linux and then backported. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |