mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 18:02:52 +02:00
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:
+1
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user