From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHBTG-0004Au-7N for qemu-devel@nongnu.org; Fri, 30 Jan 2015 08:18:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHBTD-0004Ol-20 for qemu-devel@nongnu.org; Fri, 30 Jan 2015 08:18:50 -0500 Received: from omzsmtpe04.verizonbusiness.com ([199.249.25.207]:57759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHBTC-0004Of-QR for qemu-devel@nongnu.org; Fri, 30 Jan 2015 08:18:46 -0500 From: Don Slutz Message-ID: <54CB84B4.7030008@terremark.com> Date: Fri, 30 Jan 2015 08:18:44 -0500 MIME-Version: 1.0 References: <1422584076-5728-1-git-send-email-arei.gonglei@huawei.com> <1422584076-5728-2-git-send-email-arei.gonglei@huawei.com> In-Reply-To: <1422584076-5728-2-git-send-email-arei.gonglei@huawei.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 1/3] vnc: fix qemu crash when not configure vnc option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: arei.gonglei@huawei.com, qemu-devel@nongnu.org Cc: kraxel@redhat.com, dslutz@verizon.com, peter.huangpeng@huawei.com On 01/29/15 21:14, arei.gonglei@huawei.com wrote: > From: Gonglei > > Add missing vnc options: to, ipv4, ipv6 and fix > qemu crash. > > Reproducer: > $ x86_64-softmmu/qemu-system-x86_64 > qemu-system-x86_64: Invalid parameter 'to' > Segmentation fault (core dumped) > > BTW the patch fix the below bug: > https://bugs.launchpad.net/qemu/+bug/1414222 > > Signed-off-by: Gonglei > --- Looks good, Reviewed-by: Don Slutz -Don Slutz > ui/vnc.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/ui/vnc.c b/ui/vnc.c > index a742c90..08b8b24 100644 > --- a/ui/vnc.c > +++ b/ui/vnc.c > @@ -3276,6 +3276,15 @@ static QemuOptsList qemu_vnc_opts = { > .name = "connections", > .type = QEMU_OPT_NUMBER, > },{ > + .name = "to", > + .type = QEMU_OPT_NUMBER, > + },{ > + .name = "ipv4", > + .type = QEMU_OPT_BOOL, > + },{ > + .name = "ipv6", > + .type = QEMU_OPT_BOOL, > + },{ > .name = "password", > .type = QEMU_OPT_BOOL, > },{ >