[Frugalware-git] interim: byacc-1.9-2-i686
Miklos Vajna
vmiklos at frugalware.org
Sun Aug 10 00:37:11 CEST 2008
Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=interim.git;a=commitdiff;h=6afbd316942bf6859e3e6a63249cb574880952ce
commit 6afbd316942bf6859e3e6a63249cb574880952ce
Author: Miklos Vajna <vmiklos at frugalware.org>
Date: Wed Jul 23 22:48:30 2008 +0200
byacc-1.9-2-i686
- added CVE-2008-3196.patch
- closes #3251
diff --git a/source/devel-extra/byacc/CVE-2008-3196.patch b/source/devel-extra/byacc/CVE-2008-3196.patch
new file mode 100644
index 0000000..6c6ea78
--- /dev/null
+++ b/source/devel-extra/byacc/CVE-2008-3196.patch
@@ -0,0 +1,15 @@
+diff -urp byacc-20070509/skeleton.c byacc-20070509-pm/skeleton.c
+--- byacc-20070509/skeleton.c 2005-05-05 01:39:36.000000000 +0200
++++ byacc-20070509-pm/skeleton.c 2008-07-14 13:03:36.000000000 +0200
+@@ -275,7 +276,10 @@ char *body[] =
+ " YYPREFIX, yystate, yyn, yyrule[yyn]);",
+ "#endif",
+ " yym = yylen[yyn];",
+- " yyval = yyvsp[1-yym];",
++ " if (yym)",
++ " yyval = yyvsp[1-yym];",
++ " else",
++ " memset(&yyval, 0, sizeof yyval);",
+ " switch (yyn)",
+ " {",
+ 0
diff --git a/source/devel-extra/byacc/FrugalBuild b/source/devel-extra/byacc/FrugalBuild
index e960e56..fe43d38 100644
--- a/source/devel-extra/byacc/FrugalBuild
+++ b/source/devel-extra/byacc/FrugalBuild
@@ -3,23 +3,24 @@
pkgname=byacc
pkgver=1.9
-pkgrel=1
+pkgrel=2
pkgdesc="The best variant of the Yacc parser generator."
url="http://dickey.his.com/byacc/byacc.html"
depends=('glibc')
groups=('devel-extra')
archs=('i686' 'x86_64')
up2date="lynx -dump http://sources.isc.org/devel/tools/\$(lynx -dump http://dickey.his.com/byacc/byacc.html|grep -m1 '.txt'|sed 's|.*/||g')|grep -m1 'Version:'|sed 's/.* //'"
-source=(http://www.isc.org/sources/devel/tools/byacc-$pkgver.tar.gz)
+source=(http://www.isc.org/sources/devel/tools/byacc-$pkgver.tar.gz \
+ CVE-2008-3196.patch)
+sha1sums=('4d4e6afac11d68d7ed2037d463aa0cdd24423bae' \
+ 'b5dd1ee1d4475fe553dc87047f93964f43d479e3')
build()
{
- Fcd
+ Fpatchall
make PROGRAM=byacc CFLAGS="$CFLAGS" || return 1
Fexerel /usr/bin/byacc
Ffilerel yacc.1 /usr/share/man/man1/byacc.1
}
# optimization OK
-
-sha1sums=('4d4e6afac11d68d7ed2037d463aa0cdd24423bae')
More information about the Frugalware-git
mailing list