]> git.pld-linux.org Git - packages/akonadi.git/blame - 0005-Fix-buffer-overflow-in-AKTEST_FAKESERVER_MAIN.patch
boost rebuild
[packages/akonadi.git] / 0005-Fix-buffer-overflow-in-AKTEST_FAKESERVER_MAIN.patch
CommitLineData
8a8f9fb3
AM
1From 01c86229f9e26d9e036f6f2ab405659ed836b5c0 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Dan=20Vr=C3=A1til?= <dvratil@redhat.com>
3Date: Mon, 8 Sep 2014 15:36:18 +0200
4Subject: [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
10diff --git a/shared/aktest.h b/shared/aktest.h
11index 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--
242.1.0
25
This page took 0.891489 seconds and 4 git commands to generate.