Commit 7178b50e authored by John van Groningen's avatar John van Groningen
Browse files

fix crash that occurs if there is not enough memory

to convert the syntax tree and the analyser is used
again for functions that are generated later
parent 480b40ef
......@@ -5651,7 +5651,10 @@ void StrictnessAnalysis (ImpMod imod)
int StrictnessAnalysisConvertRules (ImpRuleS *rules)
{
initialising = True;
if (initialising)
return 0;
initialising=True;
if (setjmp (SAEnv)==0){
ImpRuleS *rule;
......@@ -5668,6 +5671,8 @@ int StrictnessAnalysisConvertRules (ImpRuleS *rules)
return 1;
} else {
FreeUnFreezedBlocks();
if (StrictWarning)
GiveStrictWarning (NULL,"not enough memory for strictness analysis of all functions");
return 0;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment