Corrected a potential crash condition if attempting to read a GDS
cell without any edit cell defined.
This commit is contained in:
parent
0503ce0ebf
commit
78be76a650
|
|
@ -164,6 +164,12 @@ CalmaReadFile(file, filename)
|
||||||
static int skipBeforeLib[] = { CALMA_LIBDIRSIZE, CALMA_SRFNAME,
|
static int skipBeforeLib[] = { CALMA_LIBDIRSIZE, CALMA_SRFNAME,
|
||||||
CALMA_LIBSECUR, -1 };
|
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 */
|
/* We will use full cell names as keys in this hash table */
|
||||||
CIFReadCellInit(0);
|
CIFReadCellInit(0);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue