Corrected potential crash condition that can happen if there is one

or more repeated "equiv" lines in a .ext file.  This implies two
ports with different names are connected, indicating probably a bad
layout, but that's not a reason to have magic crash.
This commit is contained in:
Tim Edwards 2020-05-23 21:33:42 -04:00
parent 9382cc622c
commit df9a52de6c
1 changed files with 4 additions and 0 deletions

View File

@ -457,10 +457,14 @@ efBuildEquiv(def, nodeName1, nodeName2)
EFStrToHN((HierName *) NULL, nodeName2));
return;
}
else if (nn2->efnn_node == (EFNode *)NULL)
return; /* Repeated "equiv" statement */
/* If both names exist and are for different nodes, merge them */
if (nn1)
{
if (nn1->efnn_node == (EFNode *)NULL)
return; /* Repeated "equiv" statement */
if (nn1->efnn_node != nn2->efnn_node)
{
if (efWarn)