qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] util/guest-random: Fix size arg to tail memcpy


From: Richard Henderson
Subject: Re: [PATCH] util/guest-random: Fix size arg to tail memcpy
Date: Fri, 9 Jul 2021 07:54:44 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 7/9/21 5:06 AM, Mark Nelson wrote:
We know that in the body of this if statement i is less than len, so
we really should be copying len - i bytes not i - len bytes.

Fix this typo.

Signed-off-by: Mark Nelson<mdnelson8@gmail.com>
---
  util/guest-random.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]