3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

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

View File

@ -308,7 +308,7 @@ static void start_qemu(void)
testargs, testargs,
getenv("PATH")); 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)); memcpy(argv, qemu_argv, sizeof(qemu_argv));
pos = (sizeof(qemu_argv) / sizeof(char *)) - 1; pos = (sizeof(qemu_argv) / sizeof(char *)) - 1;