Corrected an error in defGetType() that incorrectly looks at a

lefLayer's "via" record even when the layer might not be a via,
causing potential issues with uninitialized variables.  Not sure
if this is related to the bug that started this investigation,
but it was the only thing that looked relevant.
This commit is contained in:
Tim Edwards
2024-03-08 09:33:13 -05:00
parent 191bff6c47
commit eeeaf49ec7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
8.3.463
8.3.464
+1 -1
View File
@@ -2040,7 +2040,7 @@ defGetType(ttype, lefptr, do_vias)
{
lefl = (lefLayer *)HashGetValue(he);
if (lefl && (do_vias == FALSE) && (contact == CLASS_VIA) &&
(lefl->info.via.lr != NULL))
(lefl->lefClass == CLASS_VIA))
continue; /* Skip VIA definitions if do_vias is FALSE */
if (lefl && ((contact == lefl->lefClass) ||