[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH for-4.10] string: fix memmove when size is 0
>>> On 17.10.17 at 14:03, <roger.pau@xxxxxxxxxx> wrote: > --- a/xen/arch/x86/string.c > +++ b/xen/arch/x86/string.c > @@ -39,6 +39,9 @@ void *(memmove)(void *dest, const void *src, size_t n) > { > long d0, d1, d2; > > + if ( !n ) > + return; memmove() hopefully isn't on any really hot path, so the extra conditional shouldn't hurt much. Personally I think in cases like this, where the compiler would need to step out of its way in order to cause actually unexpected behavior, it is rather pointless to try to please a checking tool. Anyway, Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |