From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- dev-util/yacc/files/mkstemp.patch | 15 ++++++++++ dev-util/yacc/files/yacc-1.9.1-CVE-2008-3196.patch | 33 ++++++++++++++++++++++ dev-util/yacc/files/yacc-1.9.1-ia64.patch | 24 ++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 dev-util/yacc/files/mkstemp.patch create mode 100644 dev-util/yacc/files/yacc-1.9.1-CVE-2008-3196.patch create mode 100644 dev-util/yacc/files/yacc-1.9.1-ia64.patch (limited to 'dev-util/yacc/files') diff --git a/dev-util/yacc/files/mkstemp.patch b/dev-util/yacc/files/mkstemp.patch new file mode 100644 index 000000000000..f037e331fb5b --- /dev/null +++ b/dev-util/yacc/files/mkstemp.patch @@ -0,0 +1,15 @@ +--- main.c.orig 2002-12-17 14:28:54.000000000 -0500 ++++ 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); + 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 new file mode 100644 index 000000000000..2fbb83cfc6b1 --- /dev/null +++ b/dev-util/yacc/files/yacc-1.9.1-CVE-2008-3196.patch @@ -0,0 +1,33 @@ +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 ", + "#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 new file mode 100644 index 000000000000..c10e88541287 --- /dev/null +++ b/dev-util/yacc/files/yacc-1.9.1-ia64.patch @@ -0,0 +1,24 @@ +--- 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 + #include + #include +- ++#include ++#include + + /* 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(); + -- cgit v1.2.3-65-gdbad