test-runner: Bump alloca request

Otherwise we run out of bounds on the argv array.
This commit is contained in:
Denis Kenzior 2017-05-16 15:57:56 -05:00
parent 7b45ad220d
commit 694a95ba9e
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ static void start_qemu(void)
testargs,
getenv("PATH"));
argv = alloca(sizeof(qemu_argv) + sizeof(char *) * 5);
argv = alloca(sizeof(qemu_argv) + sizeof(char *) * 7);
memcpy(argv, qemu_argv, sizeof(qemu_argv));
pos = (sizeof(qemu_argv) / sizeof(char *)) - 1;