Corrected a potential segfault issue in "extresist" if it encounters

a port label that is not connected to a valid layer (e.g., space).
This commit is contained in:
Tim Edwards 2021-07-23 10:39:59 -04:00
parent 7c973ad91a
commit 758a7d72ec
2 changed files with 7 additions and 1 deletions

View File

@ -1 +1 @@
8.3.188
8.3.189

View File

@ -212,6 +212,12 @@ ResMakePortBreakpoints(def)
node=(ResSimNode *) HashGetValue(entry);
if (node->status & PORTNODE)
{
if (node->rs_ttype <= 0)
{
TxError("Warning: Label \"%s\" is unconnected.\n", node->name);
continue;
}
plane = def->cd_planes[DBPlane(node->rs_ttype)];
rect = &(node->rs_bbox);