Hello.

I'v faced with yacc segmentation fault error while trying to build
TkGate-2.0b10 from tkgate.org
(http://www.tkgate.org/downloads/tkgate-2.0-b10.tgz) on OpenBSD-5.6. Error
appears when yacc parses ./src/tkgate/vgrammar.y file (attached).
I have no any tests and knowledge about yacc structure, but the attached
patch seems to fix the problem in this particular case at least.

Yours sincerely,
Andrey V. Skvortsov

Attachment: vgrammar.y.gz
Description: GNU Zip compressed data

605c605
< 			if (loc >= maxtable) {
---
> 			if (loc >= maxtable - 1) {
612c612
< 				} while (newmax <= loc);
---
> 				} while (newmax <= loc + 1);

Reply via email to