Skip to content

Commit a4d6775

Browse files
authored
Merge pull request #384 from QiuYitai/master
Fix the null reference vulnerability
2 parents 29706eb + 02f3727 commit a4d6775

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/base/abci/abcOrchestration.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4444,6 +4444,8 @@ Rwr_ManAddTimeCuts( pManRwr, Abc_Clock() - clk );
44444444
// skip persistant nodes
44454445
if ( Abc_NodeIsPersistant(pNode) )
44464446
{
4447+
if (!(pGain_res && pGain_ref && pGain_rwr))
4448+
return 0;
44474449
fprintf(fpt, "%d, %s, %d\n", pNode->Id, "None" , -99);
44484450
Vec_IntPush((*pGain_res), -99);
44494451
Vec_IntPush((*pGain_ref), -99);
@@ -4453,6 +4455,8 @@ Rwr_ManAddTimeCuts( pManRwr, Abc_Clock() - clk );
44534455
// skip the nodes with many fanouts
44544456
if ( Abc_ObjFanoutNum(pNode) > 1000 )
44554457
{
4458+
if (!(pGain_res && pGain_ref && pGain_rwr))
4459+
return 0;
44564460
fprintf(fpt, "%d, %s, %d\n", pNode->Id,"None", -99);
44574461
Vec_IntPush((*pGain_res), -99);
44584462
Vec_IntPush((*pGain_ref), -99);

0 commit comments

Comments
 (0)