pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/mpg123 another header valdation (CAN-2004-0991)



details:   https://anonhg.NetBSD.org/pkgsrc/rev/87aaea7dba60
branches:  trunk
changeset: 487281:87aaea7dba60
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Wed Jan 12 11:52:38 2005 +0000

description:
another header valdation (CAN-2004-0991)
ride on recent PKGREVISION bump

diffstat:

 audio/mpg123/distinfo         |   4 ++--
 audio/mpg123/patches/patch-ar |  17 ++++++++++++-----
 2 files changed, 14 insertions(+), 7 deletions(-)

diffs (43 lines):

diff -r c6830c14973a -r 87aaea7dba60 audio/mpg123/distinfo
--- a/audio/mpg123/distinfo     Wed Jan 12 11:52:09 2005 +0000
+++ b/audio/mpg123/distinfo     Wed Jan 12 11:52:38 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.20 2005/01/07 14:52:13 drochner Exp $
+$NetBSD: distinfo,v 1.21 2005/01/12 11:52:38 drochner Exp $
 
 SHA1 (mpg123/mpg123-0.59r.tar.gz) = c32fe242f4506d218bd19a51a4034da9fdc79493
 Size (mpg123/mpg123-0.59r.tar.gz) = 159028 bytes
@@ -21,6 +21,6 @@
 SHA1 (patch-ao) = 40961a43cc3dbebf71deee1c240907896d297304
 SHA1 (patch-ap) = b35e7f6739a8b4979412793c7b3f2f7f5a9f15a7
 SHA1 (patch-aq) = a993d815b6657b9a2241b2e3f0ba30d6c2861230
-SHA1 (patch-ar) = 6238d6f2ff3f3abf4fd47bc36edcf6696d76fea4
+SHA1 (patch-ar) = e81771bf72da97d898f9320fb6c529e5a1151050
 SHA1 (patch-as) = 8765b22c556cdc217f6270f3a5e70b40b36b9229
 SHA1 (patch-at) = 9a64a62f7d1d115e3d36dbb0f08762d4b0eb1e2b
diff -r c6830c14973a -r 87aaea7dba60 audio/mpg123/patches/patch-ar
--- a/audio/mpg123/patches/patch-ar     Wed Jan 12 11:52:09 2005 +0000
+++ b/audio/mpg123/patches/patch-ar     Wed Jan 12 11:52:38 2005 +0000
@@ -1,10 +1,17 @@
-$NetBSD: patch-ar,v 1.1 2004/09/07 22:14:09 salo Exp $
-
-CVE: CAN-2004-0805
+$NetBSD: patch-ar,v 1.2 2005/01/12 11:52:38 drochner Exp $
 
 --- 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 @@
++++ layer2.c
+@@ -240,7 +240,7 @@ static void II_select_table(struct frame
+        { alloc_0, alloc_1, alloc_2, alloc_3 , alloc_4 };
+   static int sblims[5] = { 27 , 30 , 8, 12 , 30 };
+ 
+-  if(fr->lsf)
++  if(fr->sampling_frequency >= 3) /* Or equivalent: (fr->lsf == 1) */
+     table = 4;
+   else
+     table = translate[fr->sampling_frequency][2-fr->stereo][fr->bitrate_index];
+@@ -265,6 +265,12 @@ int do_layer2(struct frame *fr,int outmo
    fr->jsbound = (fr->mode == MPG_MD_JOINT_STEREO) ?
       (fr->mode_ext<<2)+4 : fr->II_sblimit;
  



Home | Main Index | Thread Index | Old Index