Corrected an error that allows a cell to be renamed with the name
of an existing cell, which does not appear to be a fatal problem, but must be causing a memory leak. Also: Corrected an error in extresist when reading .sim files, in code that is slated to be overhauled, so this is just a patch to avoid a crash condition.
This commit is contained in:
parent
c42db8e71b
commit
0e84616af8
|
|
@ -117,6 +117,14 @@ DBCellRename(cellname, newname, doforce)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/* Cannot rename a cell with the name of an existing cell */
|
||||
entry = HashLookOnly(&dbCellDefTable, newname);
|
||||
if (entry != NULL)
|
||||
{
|
||||
TxError("Cannot rename; cell \"%s\" already exists!\n", newname);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* Disallow renaming if the cell has the READONLY flag set, */
|
||||
/* because the cellname must match the name in the GDS */
|
||||
/* file referenced. */
|
||||
|
|
|
|||
|
|
@ -198,9 +198,10 @@ ResReadSim(simfile, fetproc, capproc, resproc, attrproc, mergeproc, subproc)
|
|||
result = 1;
|
||||
break;
|
||||
}
|
||||
if (fettype == -1)
|
||||
if (fettype < 0)
|
||||
{
|
||||
TxError("Error in Reading device line of sim file.\n");
|
||||
TxError("Error in Reading device line of sim file:");
|
||||
TxError("Amgiguous or unknown device.\n");
|
||||
result = 1;
|
||||
}
|
||||
else if (fettype == DBNumTypes)
|
||||
|
|
|
|||
Loading…
Reference in New Issue