From 1b6e4e2b363d7d770b461cabf2596986789a21ed Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Tue, 14 Jun 2022 11:36:30 -0400 Subject: [PATCH] Corrected an error in the last commit which can cause the pin enumeration in MatchPins() to overflow the cover() array and cause a segmentation fault. --- VERSION | 2 +- base/netcmp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index e1c16d0..e838e26 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.223 +1.5.224 diff --git a/base/netcmp.c b/base/netcmp.c index 33fe32a..bcdde93 100644 --- a/base/netcmp.c +++ b/base/netcmp.c @@ -7381,7 +7381,7 @@ int MatchPins(struct nlist *tc1, struct nlist *tc2, int dolist) /* If there are multiple pins on the same net, cycle through them; */ /* otherwise, move to the next entry in the partition. */ - if (ob1->next && (ob1->next->node == ob1->node)) { + if (ob1->next && (ob1->next->type == PORT) && (ob1->next->node == ob1->node)) { ob1 = ob1->next; ob2 = tc2->cell; /* Restart search for matching pin */ i++;