diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-09-15 04:26:00 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-09-15 04:26:00 +0000 |
commit | ecde55e9ce5a92c040d1a5c48406c2b11cdc93ff (patch) | |
tree | 3a1a69b2ae8b861a7ea8f7ac1066887ed6d30d31 /sys-devel/bison/files | |
parent | Marked ppc stable. (diff) | |
download | gentoo-2-ecde55e9ce5a92c040d1a5c48406c2b11cdc93ff.tar.gz gentoo-2-ecde55e9ce5a92c040d1a5c48406c2b11cdc93ff.tar.bz2 gentoo-2-ecde55e9ce5a92c040d1a5c48406c2b11cdc93ff.zip |
Fix from upstream for segfault in error reporting #106014 by postmodern.
(Portage version: 2.0.52-r1)
Diffstat (limited to 'sys-devel/bison/files')
-rw-r--r-- | sys-devel/bison/files/bison-2.0-token-name-translate.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys-devel/bison/files/bison-2.0-token-name-translate.patch b/sys-devel/bison/files/bison-2.0-token-name-translate.patch new file mode 100644 index 000000000000..ec00e0dccdb2 --- /dev/null +++ b/sys-devel/bison/files/bison-2.0-token-name-translate.patch @@ -0,0 +1,23 @@ +revision 1.57 +date: 2005/07/25 03:38:41; author: eggert; state: Exp; lines: +1 -1 +Fix core dump reported by Pablo De Napoli in +<http://lists.gnu.org/archive/html/bug-bison/2005-07/msg00053.html>. +* tests/regression.at (Invalid inputs with {}): New test. +* src/parse-gram.y (token_name): Translate type before using +it as an index. + +Index: src/parse-gram.y +=================================================================== +RCS file: /cvsroot/bison/bison/src/parse-gram.y,v +retrieving revision 1.56 +retrieving revision 1.57 +diff -u -p -r1.56 -r1.57 +--- src/parse-gram.c 24 Jul 2005 07:24:22 -0000 1.56 ++++ src/parse-gram.c 25 Jul 2005 03:38:41 -0000 1.57 +@@ -538,5 +538,5 @@ gram_error (location const *loc, char co + char const * + token_name (int type) + { +- return yytname[type]; ++ return yytname[YYTRANSLATE (type)]; + } |