From 758a7d72ec9527863b9df68e366172e6e98d0c47 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 23 Jul 2021 10:39:59 -0400 Subject: [PATCH] Corrected a potential segfault issue in "extresist" if it encounters a port label that is not connected to a valid layer (e.g., space). --- VERSION | 2 +- resis/ResMain.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 0b00a6f6..7eb9f00a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.188 +8.3.189 diff --git a/resis/ResMain.c b/resis/ResMain.c index 78e32d29..bb661d6c 100644 --- a/resis/ResMain.c +++ b/resis/ResMain.c @@ -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);