Limit corrections on strings to <= 16 bytes. Otherwise memory usage spikes instantly on errors, and causes Windows DEP to kill gmqcc.

This commit is contained in:
Dale Weiler 2013-06-15 07:40:42 +00:00
parent b773702a47
commit fee7794789

View file

@ -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);