Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/4] spice-qemu-char: fix check for in-parameter

2014-11-02 Thread zhanghailiang
On 2014/11/2 14:50, Michael Tokarev wrote: 01.11.2014 04:50, zhanghailiang wrote: For qemu_chr_open_spice_vmc and qemu_chr_open_spice_port, the in-parameter never to be NULL, because the checks in qemu_chr_parse_spice_vmc and qemu_chr_parse_spice_port have ensured this. So we should check the l

Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/4] spice-qemu-char: fix check for in-parameter

2014-11-01 Thread Michael Tokarev
01.11.2014 04:50, zhanghailiang wrote: > For qemu_chr_open_spice_vmc and qemu_chr_open_spice_port, the in-parameter > never to be NULL, because the checks in qemu_chr_parse_spice_vmc > and qemu_chr_parse_spice_port have ensured this. > > So we should check the length of the in-parameter. The same