From e224570e7c10c1f77c3ec1ae240994bf9c26488c Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 13 Oct 2014 10:35:06 +1100 Subject: [PATCH] Parsergen: abort on error. The error handling is currently completely broken and goes into an infinite loop. Just abort for now. Signed-off-by: NeilBrown --- csrc/parsergen.mdc | 1 + 1 file changed, 1 insertion(+) diff --git a/csrc/parsergen.mdc b/csrc/parsergen.mdc index cfaa5c4..6eb58bd 100644 --- a/csrc/parsergen.mdc +++ b/csrc/parsergen.mdc @@ -2815,6 +2815,7 @@ one symbol for each line where newlines are allowed. break; tos = &p.stack[p.tos-1]; tos->indents += indents; + exit(1); } free(tk); pop(&p, p.tos, NULL, do_free); -- 2.43.0