diff options
Diffstat (limited to 'extra/slim/fix-array-overflow.patch')
-rw-r--r-- | extra/slim/fix-array-overflow.patch | 13 |
1 files changed, 13 insertions, 0 deletions
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<char**>(malloc(sizeof(char*)*n)); ++ child_env = static_cast<char**>(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; |