﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5949	SimpleModelicaParser does stack overflow on huge arrays	Adrian Pop	Martin Sjölund	"Basically it does {{{diffModelicaFileListings}}} on a file with a *HUGE* diagram annotation.

This consumes stack until the end bracket, it should not if possible:
{{{#!mo
  elseif id==TokenId.LBRACK then
    (tokens, tree) := consume(tokens, tree);
    (tokens, tree) := expression_list(tokens, tree);
    while true loop
      (tokens, tree, b) := scanOpt(tokens, tree, TokenId.SEMICOLON);
      if not b then
        break;
      end if;
      (tokens, tree) := expression_list(tokens, tree);
    end while;
    (tokens, tree) := scan(tokens, tree, TokenId.RBRACK);
}}}

"	defect	new	high	1.16.0	Parser				
