diff options
Diffstat (limited to 'dev-util/yacc/files')
-rw-r--r-- | dev-util/yacc/files/yacc-1.9.1-CVE-2008-3196.patch | 33 | ||||
-rw-r--r-- | dev-util/yacc/files/yacc-1.9.1-ia64.patch | 24 | ||||
-rw-r--r-- | dev-util/yacc/files/yacc-1.9.1-mkstemp.patch | 15 |
3 files changed, 0 insertions, 72 deletions
diff --git a/dev-util/yacc/files/yacc-1.9.1-CVE-2008-3196.patch b/dev-util/yacc/files/yacc-1.9.1-CVE-2008-3196.patch deleted file mode 100644 index 2fbb83cfc6b1..000000000000 --- a/dev-util/yacc/files/yacc-1.9.1-CVE-2008-3196.patch +++ /dev/null @@ -1,33 +0,0 @@ -Tue Jul 8 15:06:50 2008 UTC by otto - -Fix an venerable bug: if we're reducing a rule that has an empty -right hand side and the yacc stackpointer is pointing at the very -end of the allocated stack, we end up accessing the stack out of -bounds by the implicit $$ = $1 action. Detected by my new malloc, -experienced by sturm@ on sparc64; ok deraadt@ - - -Index: yacc-1.9.1/skeleton.c -=================================================================== ---- yacc-1.9.1.orig/skeleton.c -+++ yacc-1.9.1/skeleton.c -@@ -18,6 +18,7 @@ char *banner[] = - "/*static char yysccsid[] = \"from: @(#)yaccpar 1.9 (Berkeley) 02/21/93\";*/", - "static char yyrcsid[] = \"$Id: yacc-1.9.1-CVE-2008-3196.patch,v 1.1 2008/10/04 18:57:18 rbu Exp $\";", - "#endif", -+ "#include <string.h>", - "#define YYBYACC 1", - "#define YYMAJOR 1", - "#define YYMINOR 9", -@@ -226,7 +227,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/dev-util/yacc/files/yacc-1.9.1-ia64.patch b/dev-util/yacc/files/yacc-1.9.1-ia64.patch deleted file mode 100644 index c10e88541287..000000000000 --- a/dev-util/yacc/files/yacc-1.9.1-ia64.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- byacc-1.9/defs.h.busted Sat May 6 21:10:56 2000 -+++ byacc-1.9/defs.h Sat May 6 21:11:22 2000 -@@ -1,7 +1,8 @@ - #include <assert.h> - #include <ctype.h> - #include <stdio.h> -- -+#include <string.h> -+#include <stdlib.h> - - /* machine-dependent definitions */ - /* the following definitions are for the Tahoe */ -@@ -280,10 +281,3 @@ - extern int errno; - - --/* system functions */ -- --extern void free(); --extern char *calloc(); --extern char *malloc(); --extern char *realloc(); --extern char *strcpy(); - diff --git a/dev-util/yacc/files/yacc-1.9.1-mkstemp.patch b/dev-util/yacc/files/yacc-1.9.1-mkstemp.patch deleted file mode 100644 index 5c72a6e9bc14..000000000000 --- a/dev-util/yacc/files/yacc-1.9.1-mkstemp.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- a/main.c.orig 2002-12-17 14:28:54.000000000 -0500 -+++ b/main.c 2002-12-17 14:29:31.000000000 -0500 -@@ -264,9 +264,9 @@ - text_file_name[len + 5] = 't'; - union_file_name[len + 5] = 'u'; - -- mktemp(action_file_name); -- mktemp(text_file_name); -- mktemp(union_file_name); -+ mkstemp(action_file_name); -+ mkstemp(text_file_name); -+ mkstemp(union_file_name); - - len = strlen(file_prefix); - |