qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2] syscall: fix special case of write(fd, NULL,


From: Zhuowei zhang
Subject: Re: [Qemu-devel] [PATCH v2] syscall: fix special case of write(fd, NULL, 0)
Date: Sat, 30 Sep 2017 15:49:01 +0000 (UTC)

--------------------------------------------
On Sat, 9/30/17, Laurent Vivier <address@hidden> wrote:
 
 > Could you change the NR_read too, for consistency?
 
The NR_read case for length 0 doesn't check if the buffer is NULL, unlike this 
patch, and I'm not sure if switching that to make a real read() syscall with a 
NULL buffer even if the original buffer is non-null would break anything.

Thanks
Zhuowei


reply via email to

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