From 78be76a65075fc338da3c22514c2f9047745935a Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Sat, 5 Jun 2021 17:02:39 -0400 Subject: [PATCH] Corrected a potential crash condition if attempting to read a GDS cell without any edit cell defined. --- VERSION | 2 +- calma/CalmaRead.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index bd9847a9..fd696242 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.173 +8.3.174 diff --git a/calma/CalmaRead.c b/calma/CalmaRead.c index 9857f8d0..64139209 100644 --- a/calma/CalmaRead.c +++ b/calma/CalmaRead.c @@ -164,6 +164,12 @@ CalmaReadFile(file, filename) static int skipBeforeLib[] = { CALMA_LIBDIRSIZE, CALMA_SRFNAME, CALMA_LIBSECUR, -1 }; + if (EditCellUse == (CellUse *)NULL) + { + TxError("Cannot read GDS: There is no edit cell.\n"); + return + } + /* We will use full cell names as keys in this hash table */ CIFReadCellInit(0);