From fee7794789fbe5eb65d4c50387fbcd2869c10b5e Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Sat, 15 Jun 2013 07:40:42 +0000 Subject: [PATCH] Limit corrections on strings to <= 16 bytes. Otherwise memory usage spikes instantly on errors, and causes Windows DEP to kill gmqcc. --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.c b/parser.c index e92cb6e..a87cee9 100644 --- a/parser.c +++ b/parser.c @@ -1936,7 +1936,7 @@ static bool parse_sya_operand(parser_t *parser, shunt *sy, bool with_labels) * We should also consider adding correction tables for * other things as well. */ - if (OPTS_OPTION_BOOL(OPTION_CORRECTION)) { + if (OPTS_OPTION_BOOL(OPTION_CORRECTION) && parser_tokval(parser) <= 16) { correction_t corr; correct_init(&corr); -- 2.39.2