From 155f19a6d8cc6fffb5c39b26b5c4c24f113416b5 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Sun, 4 Aug 2024 11:37:54 -0400 Subject: [PATCH] Corrected an issue causing a crash condition when using "extract unique" on a flattened layout (some labels end up NULL and the NULL condition needs to be checked). Also remembered to update VERSION, which was missed on the last commit. --- VERSION | 2 +- extract/ExtUnique.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 5c84de62..7659510c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.486 +8.3.487 diff --git a/extract/ExtUnique.c b/extract/ExtUnique.c index 05645a3e..2e2a716c 100644 --- a/extract/ExtUnique.c +++ b/extract/ExtUnique.c @@ -164,7 +164,8 @@ extUniqueCell(def, option) if (!(ll->ll_label->lab_flags & PORT_DIR_MASK)) for (lltest = lastreg->lreg_labels; lltest; lltest = lltest->ll_next) - if (!strcmp(lltest->ll_label->lab_text, text)) + if ((lltest->ll_label != NULL) && + (!strcmp(lltest->ll_label->lab_text, text))) if (lltest->ll_label->lab_flags & PORT_DIR_MASK) break;