1 From 01c86229f9e26d9e036f6f2ab405659ed836b5c0 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= <dvratil@redhat.com>
3 Date: Mon, 8 Sep 2014 15:36:18 +0200
4 Subject: [PATCH 05/30] Fix buffer overflow in AKTEST_FAKESERVER_MAIN()
8 1 file changed, 1 insertion(+), 1 deletion(-)
10 diff --git a/shared/aktest.h b/shared/aktest.h
11 index b1b9caa..3026304 100644
14 @@ -57,7 +57,7 @@ int main(int argc, char **argv) \
18 - char **fakeArgv = (char **) malloc(options.count()); \
19 + char **fakeArgv = (char **) malloc(options.count() * sizeof(char**)); \
20 for (int i = 0; i < options.count(); ++i) { \
21 fakeArgv[i] = options[i]; \