diff options
author | drochner <drochner> | 2005-01-12 11:52:38 +0000 |
---|---|---|
committer | drochner <drochner> | 2005-01-12 11:52:38 +0000 |
commit | 18428b7f7cd94ef3ef3b9427a41d0efcbcfa0965 (patch) | |
tree | 7a45e0056c6996994a38113ab0f3caad383f8148 /audio/mpg123/patches | |
parent | b689b7327eef38703b3150188a8362314d3dbb4b (diff) | |
download | pkgsrc-18428b7f7cd94ef3ef3b9427a41d0efcbcfa0965.tar.gz |
another header valdation (CAN-2004-0991)
ride on recent PKGREVISION bump
Diffstat (limited to 'audio/mpg123/patches')
-rw-r--r-- | audio/mpg123/patches/patch-ar | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/audio/mpg123/patches/patch-ar b/audio/mpg123/patches/patch-ar index 0e8d87d8d0a..4517d3bcae9 100644 --- a/audio/mpg123/patches/patch-ar +++ b/audio/mpg123/patches/patch-ar @@ -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; |