From 8a20b900744529c01c5359a1a82fba0e452dd12c Mon Sep 17 00:00:00 2001 From: "R. Timothy Edwards" Date: Mon, 8 Dec 2025 13:09:50 -0500 Subject: [PATCH] Corrected an issue that can cause a segfault in an incorrect run setup when a cell has no pins. Didn't really analyze the error condition, just caught and handled the condition to avoid the segfault. --- VERSION | 2 +- base/netcmp.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 42246ba..fdd8146 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.311 +1.5.312 diff --git a/base/netcmp.c b/base/netcmp.c index 38774c8..587b7b1 100644 --- a/base/netcmp.c +++ b/base/netcmp.c @@ -7544,6 +7544,11 @@ struct nlist *addproxies(struct hashlist *p, void *clientdata) } else { lob = ob; + if (ob == NULL) { + Fprintf(stdout, "Error: Premature end of pin list on " + "instance %s.\n", firstpin->instance.name); + break; + } ob->type = i++; ob = ob->next; }