Re: [Qemu-devel] [Qemu-trivial] [PATCH 1/4] qemu-char: fix parameter check for qemu_chr_open_pipe

2014-11-02 Thread zhanghailiang
On 2014/11/2 13:18, Michael Tokarev wrote: 01.11.2014 04:50, zhanghailiang wrote: The filename parameter never to be NULL, because in qemu_chr_parse_pipe it is return value of g_strdup(device), where device will not be NULL. We should check its length. After this patch, when run command: qemu

Re: [Qemu-devel] [Qemu-trivial] [PATCH 1/4] qemu-char: fix parameter check for qemu_chr_open_pipe

2014-11-01 Thread Michael Tokarev
01.11.2014 04:50, zhanghailiang wrote: > The filename parameter never to be NULL, because in qemu_chr_parse_pipe > it is return value of g_strdup(device), where device will not be > NULL. > > We should check its length. > After this patch, when run command: > qemu-system-x86_64 -chardev pipe,id=p