diff options
-rw-r--r-- | libraries/libxdg-basedir/README (renamed from development/libxdg-basedir/README) | 0 | ||||
-rw-r--r-- | libraries/libxdg-basedir/alloc_buffer.patch | 13 | ||||
-rw-r--r-- | libraries/libxdg-basedir/libxdg-basedir.SlackBuild (renamed from development/libxdg-basedir/libxdg-basedir.SlackBuild) | 9 | ||||
-rw-r--r-- | libraries/libxdg-basedir/libxdg-basedir.info (renamed from development/libxdg-basedir/libxdg-basedir.info) | 0 | ||||
-rw-r--r-- | libraries/libxdg-basedir/slack-desc (renamed from development/libxdg-basedir/slack-desc) | 0 |
5 files changed, 20 insertions, 2 deletions
diff --git a/development/libxdg-basedir/README b/libraries/libxdg-basedir/README index 779e88ba69121..779e88ba69121 100644 --- a/development/libxdg-basedir/README +++ b/libraries/libxdg-basedir/README diff --git a/libraries/libxdg-basedir/alloc_buffer.patch b/libraries/libxdg-basedir/alloc_buffer.patch new file mode 100644 index 0000000000000..4726e58dbf184 --- /dev/null +++ b/libraries/libxdg-basedir/alloc_buffer.patch @@ -0,0 +1,13 @@ +Index: libxdg-basedir-1.2.0/src/basedir.c +=================================================================== +--- libxdg-basedir-1.2.0.orig/src/basedir.c 2014-02-11 19:56:41.702376488 +0100 ++++ libxdg-basedir-1.2.0/src/basedir.c 2014-02-11 19:56:41.698376482 +0100 +@@ -574,7 +574,7 @@ + unsigned int homelen; + if (!(home = xdgGetEnv("HOME"))) + return NULL; +- if (!(relhome = (char*)malloc((homelen = strlen(home))+fallbacklength))) return NULL; ++ if (!(relhome = (char*)malloc((homelen = strlen(home))+fallbacklength+1))) return NULL; + memcpy(relhome, home, homelen); + memcpy(relhome+homelen, relativefallback, fallbacklength+1); + } diff --git a/development/libxdg-basedir/libxdg-basedir.SlackBuild b/libraries/libxdg-basedir/libxdg-basedir.SlackBuild index 191ff86dab58c..3961105469cb3 100644 --- a/development/libxdg-basedir/libxdg-basedir.SlackBuild +++ b/libraries/libxdg-basedir/libxdg-basedir.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libxdg-basedir -# Copyright 2013 Heiko Rosemann Germany +# Copyright 2013-2020 Heiko Rosemann Germany # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ PRGNAM=libxdg-basedir VERSION=${VERSION:-1.2.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -64,6 +64,11 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* cd $PRGNAM-$VERSION + +# Fix upstream bug in wrong memory allocation: +# https://sources.debian.org/patches/libxdg-basedir/1.2.0-2/alloc_buffer.patch/ +patch -p1 < $CWD/alloc_buffer.patch + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ diff --git a/development/libxdg-basedir/libxdg-basedir.info b/libraries/libxdg-basedir/libxdg-basedir.info index c1c8c17721437..c1c8c17721437 100644 --- a/development/libxdg-basedir/libxdg-basedir.info +++ b/libraries/libxdg-basedir/libxdg-basedir.info diff --git a/development/libxdg-basedir/slack-desc b/libraries/libxdg-basedir/slack-desc index 0b859196b0ae9..0b859196b0ae9 100644 --- a/development/libxdg-basedir/slack-desc +++ b/libraries/libxdg-basedir/slack-desc |