Skip to content

Commit cab003b

Browse files
authored
Merge pull request #383 from QiuYitai/master
Fix the NULL Pointer Dereference vulnerability in `Abc_NtkCecFraigPart`.
2 parents fbd1905 + db4a300 commit cab003b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/base/abci/abcVerify.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,12 @@ void Abc_NtkCecFraigPart( Abc_Ntk_t * pNtk1, Abc_Ntk_t * pNtk2, int nSeconds, in
324324
}
325325
else if ( RetValue == 0 )
326326
{
327+
if(!pMiterPart)
328+
{
329+
printf("ERROR: Failed to create cone for output %d.\n", i);
330+
Status = -1;
331+
break;
332+
}
327333
int * pSimInfo = Abc_NtkVerifySimulatePattern( pMiterPart, pMiterPart->pModel );
328334
if ( pSimInfo[0] != 1 )
329335
printf( "ERROR in Abc_NtkMiterProve(): Generated counter-example is invalid.\n" );

0 commit comments

Comments
 (0)