Skip to content

Commit

Permalink
fix segv
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanohar committed Nov 21, 2024
1 parent 1f3cf0a commit e3070a6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/map/scl/sclSize.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,16 @@ void Abc_SclTimeNtkPrint( SC_Man * p, int fShowAll, int fPrintPath )
i = 0;
while ( pObj && Abc_ObjIsNode(pObj) )
{
SC_Cell *cell = Abc_SclObjCell(pObj);
const char *pname;
if (cell && cell->pName) {
pname = cell->pName;
}
else {
pname = "pi";
}
i++;
nLength = Abc_MaxInt( nLength, strlen(Abc_SclObjCell(pObj)->pName) );
nLength = Abc_MaxInt( nLength, strlen(pname) );
pObj = Abc_SclFindMostCriticalFanin( p, &fRise, pObj );
}

Expand Down

0 comments on commit e3070a6

Please sign in to comment.