Found a crash condition reported by Abhinav Uppal where labels

that are unattached (type = space) will cause magic to crash on
the command "lef write -hide"---The lowest level issue was in
SelectChunk(), so for good measure SelectChunk() now checks for
type == TT_SPACE, and "lef write" does also.
This commit is contained in:
Tim Edwards
2022-09-23 15:44:49 -04:00
parent a550d615c0
commit f12a155ea7
2 changed files with 7 additions and 2 deletions
+3
View File
@@ -715,6 +715,9 @@ SelectChunk(scx, type, xMask, pArea, less)
SelSetDisplay(SelectUse, SelectRootDef);
}
/* Ignore if type is TT_SPACE */
if (type == TT_SPACE) return;
/* The chunk is computed iteratively. First extract a small
* region (defined by INITIALSIZE) into Select2Def. Then find
* the largest chunk in the region. If the chunk touches a