[arch-commits] Commit in alsa-utils/trunk (2 files)

Tobias Powalowski tpowa at nymeria.archlinux.org
Mon Apr 15 13:00:47 UTC 2013


    Date: Monday, April 15, 2013 @ 15:00:46
  Author: tpowa
Revision: 182803

upgpkg: alsa-utils 1.0.27-3

fix alsactl bufferoverflow #34788

Added:
  alsa-utils/trunk/alsactl-fix-buffer-overflow-1.0.27.patch
Modified:
  alsa-utils/trunk/PKGBUILD

------------------------------------------+
 PKGBUILD                                 |    9 ++++++---
 alsactl-fix-buffer-overflow-1.0.27.patch |   25 +++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-04-15 12:46:55 UTC (rev 182802)
+++ PKGBUILD	2013-04-15 13:00:46 UTC (rev 182803)
@@ -4,7 +4,7 @@
 
 pkgname=alsa-utils
 pkgver=1.0.27
-pkgrel=2
+pkgrel=3
 pkgdesc="An alternative implementation of Linux sound support"
 arch=('i686' 'x86_64')
 url="http://www.alsa-project.org"
@@ -14,12 +14,14 @@
 license=('GPL')
 source=(ftp://ftp.alsa-project.org/pub/utils/$pkgname-${pkgver}.tar.bz2
         90alsa
-        alsa-restore-1.0.27.service.patch)
+        alsa-restore-1.0.27.service.patch
+        alsactl-fix-buffer-overflow-1.0.27.patch)
 backup=(etc/conf.d/alsa)
 
 prepare() {
   cd ${srcdir}/${pkgname}-${pkgver}
   patch -Np1 -i ${srcdir}/alsa-restore-1.0.27.service.patch
+  patch -Np1 -i ${srcdir}/alsactl-fix-buffer-overflow-1.0.27.patch
 }
 
 build() {
@@ -40,4 +42,5 @@
 }
 md5sums=('cbfb21a24f63fb052b3392195639ce48'
          '529216f6a46e61a546640e08ea7a0879'
-         '0a27f7b80351d6baa274c32d859bf037')
+         '0a27f7b80351d6baa274c32d859bf037'
+         'cd577445636542f9f60b420e4ffe3f0f')

Added: alsactl-fix-buffer-overflow-1.0.27.patch
===================================================================
--- alsactl-fix-buffer-overflow-1.0.27.patch	                        (rev 0)
+++ alsactl-fix-buffer-overflow-1.0.27.patch	2013-04-15 13:00:46 UTC (rev 182803)
@@ -0,0 +1,25 @@
+From: Jaroslav Kysela <perex at perex.cz>
+Date: Mon, 15 Apr 2013 12:44:13 +0000 (+0200)
+Subject: alsactl: Fix the string size for the lock file contents
+X-Git-Url: http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff_plain;h=95788fea25c1a59985828d4b91af0772d077600b
+
+alsactl: Fix the string size for the lock file contents
+
+The string length is 10 characters + LF + '\0' = 12 characters.
+
+Signed-off-by: Jaroslav Kysela <perex at perex.cz>
+---
+
+diff --git a/alsactl/lock.c b/alsactl/lock.c
+index d34d013..fce208b 100644
+--- a/alsactl/lock.c
++++ b/alsactl/lock.c
+@@ -35,7 +35,7 @@ static int state_lock_(const char *file, int lock, int timeout)
+ 	int fd = -1, err = 0;
+ 	struct flock lck;
+ 	struct stat st;
+-	char lcktxt[11];
++	char lcktxt[12];
+ 	char *nfile;
+ 
+ 	if (!do_lock)




More information about the arch-commits mailing list