Re: [Xen-devel] [PATCH] console: avoid buffer overrun in guest_console_write()

2019-11-29 Thread Julien Grall
Hi, On 29/11/2019 14:15, Jan Beulich wrote: conring_puts() has been requiring a nul-terminated string, which the local kbuf[] doesn't get set for anymore. Add a length parameter to the function, just like was done for others, thus allowing embedded nul to also be read through XEN_SYSCTL_readcons

Re: [Xen-devel] [PATCH] console: avoid buffer overrun in guest_console_write()

2019-11-29 Thread Jürgen Groß
On 29.11.19 15:15, Jan Beulich wrote: conring_puts() has been requiring a nul-terminated string, which the local kbuf[] doesn't get set for anymore. Add a length parameter to the function, just like was done for others, thus allowing embedded nul to also be read through XEN_SYSCTL_readconsole. W

[Xen-devel] [PATCH] console: avoid buffer overrun in guest_console_write()

2019-11-29 Thread Jan Beulich
conring_puts() has been requiring a nul-terminated string, which the local kbuf[] doesn't get set for anymore. Add a length parameter to the function, just like was done for others, thus allowing embedded nul to also be read through XEN_SYSCTL_readconsole. While there drop a stray cast: Both opera