Corrected a potential crash condition if attempting to read a GDS

cell without any edit cell defined.
This commit is contained in:
Tim Edwards 2021-06-05 17:02:39 -04:00
parent 0503ce0ebf
commit 78be76a650
2 changed files with 7 additions and 1 deletions

View File

@ -1 +1 @@
8.3.173
8.3.174

View File

@ -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);