summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorsalo <salo>2004-09-07 22:14:09 +0000
committersalo <salo>2004-09-07 22:14:09 +0000
commit744a3e33f47349f58f152d0bea4a39c6d59742cb (patch)
tree5aa40d0538a652dadb25db85efc7556e7f4d446e /audio
parentba5871e699094fc0592cd2174852f06577f2aa3b (diff)
downloadpkgsrc-744a3e33f47349f58f152d0bea4a39c6d59742cb.tar.gz
PKGREVISION++
- fix a buffer overflow: "A malicious formatted mp3/2 causes mpg123 to fail header checks, this may allow arbitrary code to be executed with the privilege of the user trying to play the mp3." - patch from Debian but retain code style.
Diffstat (limited to 'audio')
-rw-r--r--audio/mpg123-esound/Makefile4
-rw-r--r--audio/mpg123-nas/Makefile4
-rw-r--r--audio/mpg123/Makefile4
-rw-r--r--audio/mpg123/distinfo3
-rw-r--r--audio/mpg123/patches/patch-ar19
5 files changed, 27 insertions, 7 deletions
diff --git a/audio/mpg123-esound/Makefile b/audio/mpg123-esound/Makefile
index bce46c17e04..df770a7dfae 100644
--- a/audio/mpg123-esound/Makefile
+++ b/audio/mpg123-esound/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2004/04/24 23:05:40 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2004/09/07 22:14:10 salo Exp $
PKGNAME= mpg123-esound-${MPG123_VERSION}
-PKGREVISION= 1
+PKGREVISION= 2
COMMENT= Command-line player for mpeg layer 1, 2 and 3 audio with EsounD
TARGET_SUFFIX= -esd
diff --git a/audio/mpg123-nas/Makefile b/audio/mpg123-nas/Makefile
index c04c271edb9..d89e78bb784 100644
--- a/audio/mpg123-nas/Makefile
+++ b/audio/mpg123-nas/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2004/04/24 23:16:32 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2004/09/07 22:14:10 salo Exp $
PKGNAME= mpg123${TARGET_SUFFIX}-${MPG123_VERSION}
-PKGREVISION= 3
+PKGREVISION= 4
COMMENT= Command-line player for mpeg layer 1, 2 and 3 audio with NAS output
TARGET_SUFFIX= -nas
diff --git a/audio/mpg123/Makefile b/audio/mpg123/Makefile
index 2f7a9034d09..e10b723e2d1 100644
--- a/audio/mpg123/Makefile
+++ b/audio/mpg123/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.35 2004/02/10 09:32:47 tron Exp $
+# $NetBSD: Makefile,v 1.36 2004/09/07 22:14:09 salo Exp $
PKGNAME= mpg123-${MPG123_VERSION}
-PKGREVISION= 3
+PKGREVISION= 4
COMMENT= Command-line player for mpeg layer 1, 2 and 3 audio
CONFLICTS+= mpg123-nas-[0-9]*
diff --git a/audio/mpg123/distinfo b/audio/mpg123/distinfo
index 60ddc5ed31c..d1fea081646 100644
--- a/audio/mpg123/distinfo
+++ b/audio/mpg123/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2004/03/17 04:49:48 danw Exp $
+$NetBSD: distinfo,v 1.18 2004/09/07 22:14:09 salo Exp $
SHA1 (mpg123/mpg123-0.59r.tar.gz) = c32fe242f4506d218bd19a51a4034da9fdc79493
Size (mpg123/mpg123-0.59r.tar.gz) = 159028 bytes
@@ -21,3 +21,4 @@ SHA1 (patch-an) = 08917e1825adcfd870bb2c61ae865339da7c45ef
SHA1 (patch-ao) = 40961a43cc3dbebf71deee1c240907896d297304
SHA1 (patch-ap) = b35e7f6739a8b4979412793c7b3f2f7f5a9f15a7
SHA1 (patch-aq) = ea443c1d45d856f360d2ccba3e5e2d058ac65007
+SHA1 (patch-ar) = 6238d6f2ff3f3abf4fd47bc36edcf6696d76fea4
diff --git a/audio/mpg123/patches/patch-ar b/audio/mpg123/patches/patch-ar
new file mode 100644
index 00000000000..0e8d87d8d0a
--- /dev/null
+++ b/audio/mpg123/patches/patch-ar
@@ -0,0 +1,19 @@
+$NetBSD: patch-ar,v 1.1 2004/09/07 22:14:09 salo Exp $
+
+CVE: CAN-2004-0805
+
+--- layer2.c.orig 1999-02-10 13:13:06.000000000 +0100
++++ layer2.c 2004-09-08 00:00:06.000000000 +0200
+@@ -265,6 +265,12 @@
+ fr->jsbound = (fr->mode == MPG_MD_JOINT_STEREO) ?
+ (fr->mode_ext<<2)+4 : fr->II_sblimit;
+
++ if (fr->jsbound > fr->II_sblimit)
++ {
++ fprintf(stderr, "Truncating stereo boundary to sideband limit.\n");
++ fr->jsbound=fr->II_sblimit;
++ }
++
+ if(stereo == 1 || single == 3)
+ single = 0;
+