MantisBT - Open CASCADE
View Issue Details
0030984Open CASCADE[OCCT] OCCT:Foundation Classespublic2019-09-20 06:562020-09-11 16:13
abv 
abv 
normalminor 
newopen 
 
[OCCT] 7.6.0* 
0030984: Foundation Classes - possible use of NULL pointer in TColStd_PackedMapOfInteger::Differ()
MSVC 2019 Code Analysis tool reports possible use of NULL pointer in TColStd_PackedMapOfInteger::Differ():

        TColStd_intMapNode** aData = NULL;
        if (p1 == 0L) {
          if (Resizable()) {
            ReSize(InternalExtent());
            aData = (TColStd_intMapNode**) myData1;
          }
          const Standard_Integer aHashCode = p2->HashCode (NbBuckets());
          aData[aHashCode]= new TColStd_intMapNode (p2->Mask(), p2->Data(),
                                                    aData[aHashCode]);
No tags attached.
Issue History
2019-09-20 06:56abvNew Issue
2019-09-20 06:56abvAssigned To => abv
2020-09-11 16:13utverdovTarget Version7.5.0 => 7.6.0*

There are no notes attached to this issue.