From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGrjT-0008F4-JP for qemu-devel@nongnu.org; Thu, 29 Jan 2015 11:14:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGrjQ-0008Ci-EL for qemu-devel@nongnu.org; Thu, 29 Jan 2015 11:14:15 -0500 Received: from omzsmtpe04.verizonbusiness.com ([199.249.25.207]:59207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGrjQ-0008Cc-98 for qemu-devel@nongnu.org; Thu, 29 Jan 2015 11:14:12 -0500 From: Don Slutz Message-ID: <54CA5C52.3070303@terremark.com> Date: Thu, 29 Jan 2015 11:14:10 -0500 MIME-Version: 1.0 References: <1422535966-9948-1-git-send-email-arei.gonglei@huawei.com> <1422535966-9948-2-git-send-email-arei.gonglei@huawei.com> In-Reply-To: <1422535966-9948-2-git-send-email-arei.gonglei@huawei.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 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, peter.huangpeng@huawei.com On 01/29/15 07:52, arei.gonglei@huawei.com wrote: > From: Gonglei > > Reproducer: > $ x86_64-softmmu/qemu-system-x86_64 > qemu-system-x86_64: Invalid parameter 'to' > Segmentation fault (core dumped) > > Signed-off-by: Gonglei > --- > 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, > },{ > The code change looks good, but does more then the commit message says. Maybe include something like "Add missing vnc options: to, ipv4, ipv6". -Don Slutz