mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user