[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] vnc: fix qemu crash when not configure vnc option
From: |
arei.gonglei |
Subject: |
[Qemu-devel] [PATCH] vnc: fix qemu crash when not configure vnc option |
Date: |
Thu, 29 Jan 2015 17:27:40 +0800 |
From: Gonglei <address@hidden>
Reproducer:
$ x86_64-softmmu/qemu-system-x86_64
qemu-system-x86_64: Invalid parameter 'to'
Segmentation fault (core dumped)
Signed-off-by: Gonglei <address@hidden>
---
ui/vnc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ui/vnc.c b/ui/vnc.c
index a742c90..acff482 100644
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -3276,6 +3276,9 @@ static QemuOptsList qemu_vnc_opts = {
.name = "connections",
.type = QEMU_OPT_NUMBER,
},{
+ .name = "to",
+ .type = QEMU_OPT_NUMBER,
+ },{
.name = "password",
.type = QEMU_OPT_BOOL,
},{
--
1.7.12.4
- [Qemu-devel] [PATCH] vnc: fix qemu crash when not configure vnc option,
arei.gonglei <=