summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-15 04:26:00 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-15 04:26:00 +0000
commitbac2969225d3027ea82c1fc1337f0ba281c55182 (patch)
treef1f5da369e2a0e96aa85c99d3b4442d9552a29b0 /sys-devel/bison/files
parentMarked ppc stable. (diff)
downloadhistorical-bac2969225d3027ea82c1fc1337f0ba281c55182.tar.gz
historical-bac2969225d3027ea82c1fc1337f0ba281c55182.tar.bz2
historical-bac2969225d3027ea82c1fc1337f0ba281c55182.zip
Fix from upstream for segfault in error reporting #106014 by postmodern.
Package-Manager: portage-2.0.52-r1
Diffstat (limited to 'sys-devel/bison/files')
-rw-r--r--sys-devel/bison/files/bison-2.0-token-name-translate.patch23
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)];
+ }