]> git.pld-linux.org Git - packages/akonadi.git/blob - 0005-Fix-buffer-overflow-in-AKTEST_FAKESERVER_MAIN.patch
boost rebuild
[packages/akonadi.git] / 0005-Fix-buffer-overflow-in-AKTEST_FAKESERVER_MAIN.patch
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()
5
6 ---
7  shared/aktest.h | 2 +-
8  1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/shared/aktest.h b/shared/aktest.h
11 index b1b9caa..3026304 100644
12 --- a/shared/aktest.h
13 +++ b/shared/aktest.h
14 @@ -57,7 +57,7 @@ int main(int argc, char **argv) \
15        } \
16    } \
17    TestObject tc; \
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]; \
22    } \
23 -- 
24 2.1.0
25
This page took 0.062261 seconds and 3 git commands to generate.