Corrected error that potentially causes a segfault in "lef write"
when accessing the inverse layer map array beyond its defined allocated limit of DBNumUserLayers.
This commit is contained in:
parent
af3ac0dde4
commit
1beb7cd741
|
|
@ -172,7 +172,6 @@ lefWriteHeader(def, f, lefTech)
|
|||
fprintf(f, "VERSION 5.3 ;\n");
|
||||
fprintf(f, " NAMESCASESENSITIVE ON ;\n");
|
||||
fprintf(f, " NOWIREEXTENSIONATPIN ON ;\n");
|
||||
fprintf(f, " NOWIREEXTENSIONATPIN ON ;\n");
|
||||
fprintf(f, " DIVIDERCHAR \"/\" ;\n");
|
||||
fprintf(f, " BUSBITCHARS \"[]\" ;\n");
|
||||
|
||||
|
|
@ -421,7 +420,7 @@ lefYankGeometry(tile, cdata)
|
|||
|
||||
TiToRect(tile, &area);
|
||||
|
||||
while (ttype < DBNumTypes)
|
||||
while (ttype < DBNumUserLayers)
|
||||
{
|
||||
lefMagicToLefLayer = lefdata->lefMagicMap;
|
||||
if (lefMagicToLefLayer[ttype].lefInfo != NULL)
|
||||
|
|
|
|||
Loading…
Reference in New Issue