Skip to contentSkip to conversation

syscall: fix special case of write(fd, NULL, 0)

PATCH Zhuowei zhang 1 participant 1 message Sep 30, 2017 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

--------------------------------------------

Quoted 1 line · Laurent Vivier

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