diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-11-17 15:19:29 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-11-17 15:19:29 +0100 |
commit | a66ad9f55f1788fcab4028fefb2c91e563fec35c (patch) | |
tree | 93e3cfd6d5cee5dc334cd6582c789b1429f23694 /extra/slim | |
parent | 36128f354db7ef055305ffd69c29af225c6ca182 (diff) | |
parent | 071ecd58a9b69020ec170e7f89009a603e885371 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community/keepassx/PKGBUILD
core/iputils/PKGBUILD
extra/avidemux/PKGBUILD
extra/gstreamer0.10-ugly/PKGBUILD
extra/kismet/PKGBUILD
extra/maxima/PKGBUILD
extra/sbcl/PKGBUILD
extra/sound-juicer/PKGBUILD
extra/wxgtk/PKGBUILD
kde-unstable/akonadi/PKGBUILD
libre/gstreamer0.10-bad-libre/PKGBUILD
Diffstat (limited to 'extra/slim')
-rw-r--r-- | extra/slim/PKGBUILD | 6 | ||||
-rw-r--r-- | extra/slim/fix-array-overflow.patch | 13 |
2 files changed, 16 insertions, 3 deletions
diff --git a/extra/slim/PKGBUILD b/extra/slim/PKGBUILD index e777d3917..bd9809027 100644 --- a/extra/slim/PKGBUILD +++ b/extra/slim/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 169982 2012-10-30 23:00:16Z heftig $ +# $Id: PKGBUILD 171076 2012-11-16 14:05:41Z allan $ # Maintainer: Gaetan Bisson <bisson@archlinux.org> # Contributor: Thayer Williams <thayer@archlinux.org> # Contributor: Alexander Fehr <pizzapunk gmail com> @@ -21,13 +21,13 @@ source=("http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.gz" 'slim.service' 'session-name.patch' 'libpng-1.4+-support.patch' - 'fix-glibc-segfault-1.3.4.patch') + 'fix-array-overflow.patch') build() { cd "${srcdir}/${pkgname}-${pkgver}" patch -p1 -i ../session-name.patch # FS#26693: fix default session name patch -Np1 -i ../libpng-1.4+-support.patch # taken from gentoo to build - patch -Np0 -i ../fix-glibc-segfault-1.3.4.patch # FS#30864 + patch -Np0 -i ../fix-array-overflow.patch # FS#30864 cd ${srcdir} mkdir build cd build 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; |