From 071ecd58a9b69020ec170e7f89009a603e885371 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 17 Nov 2012 01:32:38 -0800 Subject: Sat Nov 17 01:27:29 PST 2012 --- extra/slim/fix-array-overflow.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 extra/slim/fix-array-overflow.patch (limited to 'extra/slim/fix-array-overflow.patch') diff --git a/extra/slim/fix-array-overflow.patch b/extra/slim/fix-array-overflow.patch new file mode 100644 index 000000000..b035f8a78 --- /dev/null +++ b/extra/slim/fix-array-overflow.patch @@ -0,0 +1,13 @@ +Index: app.cpp +=================================================================== +--- app.cpp (revision 223) ++++ app.cpp (working copy) +@@ -593,7 +593,7 @@ + + n++; + +- child_env = static_cast(malloc(sizeof(char*)*n)); ++ child_env = static_cast(malloc(sizeof(char*)*(n+1))); + memcpy(child_env, old_env, sizeof(char*)*n); + child_env[n - 1] = StrConcat("XDG_SESSION_COOKIE=", ck.get_xdg_session_cookie()); + child_env[n] = NULL; -- cgit v1.2.3-54-g00ecf