From 8c7a5e5933b53c596d9dfdb4f909f327eb70310d Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Mon, 30 Dec 2013 09:12:32 -0500 Subject: [PATCH] qubes-restore: fix buffer overflow in command line building --- dispvm/qubes-restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dispvm/qubes-restore.c b/dispvm/qubes-restore.c index 8b2ebaab..ae2a12e1 100644 --- a/dispvm/qubes-restore.c +++ b/dispvm/qubes-restore.c @@ -170,7 +170,7 @@ void start_guid(int domid, int argc, char **argv) { int i; char dstr[40]; - char *guid_args[argc + 1]; + char *guid_args[argc + 4]; snprintf(dstr, sizeof(dstr), "%d", domid); guid_args[0] = "qubes-guid"; guid_args[1] = "-d";