diff options
Diffstat (limited to 'audio/mpg123/patches/patch-ar')
-rw-r--r-- | audio/mpg123/patches/patch-ar | 19 |
1 files changed, 19 insertions, 0 deletions
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; + |