Corrected a crash condition that can occur if a GDS file pointed

to by GDS_FILE does not exist.
This commit is contained in:
Tim Edwards 2020-12-03 10:35:54 -05:00
parent fdf379ef71
commit 0d10b7f785
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
8.3.90
8.3.91

View File

@ -826,7 +826,8 @@ calmaProcessDef(def, outf, do_library)
/* This is a rare error, but if the subcell is inside */
/* another vendor GDS, it would not normally be output. */
DBPropGet(def->cd_parents->cu_parent, "GDS_FILE", &isReadOnly);
DBPropGet((def->cd_parents->cu_parent == NULL) ? def :
def->cd_parents->cu_parent, "GDS_FILE", &isReadOnly);
if (!isReadOnly || isAbstract)
TxError("Calma output error: Can't find GDS file \"%s\" "
"for vendor cell \"%s\". Using magic's "