Skip to content

Commit

Permalink
Corrected an error in defGetType() that incorrectly looks at a
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RTimothyEdwards committed Mar 8, 2024
1 parent 191bff6 commit eeeaf49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.3.463
8.3.464
2 changes: 1 addition & 1 deletion lef/defWrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit eeeaf49

Please sign in to comment.