tpaviot / oce

OpenCASCADE Community Edition (OCE): a community driven fork of the Open CASCADE library.
http://groups.google.com/group/oce-dev
GNU Lesser General Public License v2.1
811 stars 284 forks source link

QA with cppcheck #37

Closed tpaviot closed 11 years ago

tpaviot commented 13 years ago

Commit: bc55d69ad44f0 cppcheck version: 1.48 cppcheck commandline: cppcheck . -I inc/ -f >cppcheck.txt 2>cppcheck-err.txt

The potential errors are reported: [inc/Standard.hxx:49]: (portability) Extra qualification 'Standard::' unnecessary and considered an error by many compilers. [inc/Standard.hxx:53]: (portability) Extra qualification 'Standard::' unnecessary and considered an error by many compilers. [inc/TCollection_DataMap.gxx:202]: (error) Possible null pointer dereference: p - otherwise it is redundant to check if p is null at line 195 [inc/TCollection_DataMap.gxx:222]: (error) Possible null pointer dereference: p - otherwise it is redundant to check if p is null at line 215 [inc/TCollection_IndexedDataMap.gxx:188]: (error) Possible null pointer dereference: p - otherwise it is redundant to check if p is null at line 181 [inc/TCollection_IndexedDataMap.gxx:281]: (error) Possible null pointer dereference: p2 - otherwise it is redundant to check if p2 is null at line 276 [inc/TCollection_IndexedDataMap.gxx:302]: (error) Possible null pointer dereference: p2 - otherwise it is redundant to check if p2 is null at line 297 [inc/TCollection_IndexedDataMap.gxx:322]: (error) Possible null pointer dereference: p2 - otherwise it is redundant to check if p2 is null at line 317 [inc/TCollection_IndexedDataMap.gxx:361]: (error) Possible null pointer dereference: p1 - otherwise it is redundant to check if p1 is null at line 356 [inc/TCollection_IndexedDataMap.gxx:381]: (error) Possible null pointer dereference: p1 - otherwise it is redundant to check if p1 is null at line 376 [inc/PLib.lxx:11]: (error) Null pointer dereference [inc/PLib.lxx:16]: (error) Null pointer dereference [inc/TCollection_Array1.gxx:31]: (error) Memory leak: p [inc/BSplCLib.lxx:28]: (error) Null pointer dereference [inc/BSplCLib.lxx:38]: (error) Null pointer dereference [inc/BOPTColStd_CArray1.gxx:111]: (error) Possible null pointer dereference: p - otherwise it is redundant to check if p is null at line 105 [inc/BOPTColStd_CArray1.gxx:113]: (error) Possible null pointer dereference: p - otherwise it is redundant to check if p is null at line 105 [inc/TCollection_IndexedMap.gxx:188]: (error) Possible null pointer dereference: p - otherwise it is redundant to check if p is null at line 181 [inc/TCollection_IndexedMap.gxx:280]: (error) Possible null pointer dereference: p2 - otherwise it is redundant to check if p2 is null at line 275 [inc/ApproxInt_Approx.gxx:103]: (error) Uninitialized variable: U [inc/ApproxInt_Approx.gxx:103]: (error) Uninitialized variable: V [inc/ApproxInt_Approx.gxx:104]: (error) Uninitialized variable: U [inc/ApproxInt_Approx.gxx:106]: (error) Uninitialized variable: V [inc/NCollection_Map.hxx:102]: (error) Null pointer dereference [inc/NCollection_DataMap.hxx:279]: (error) Possible null pointer dereference: p - otherwise it is redundant to check if p is null at line 272 [inc/NCollection_DataMap.hxx:301]: (error) Possible null pointer dereference: p - otherwise it is redundant to check if p is null at line 294 [inc/TCollection_DoubleMap.gxx:236]: (error) Possible null pointer dereference: p1 - otherwise it is redundant to check if p1 is null at line 231 [inc/TCollection_DoubleMap.gxx:256]: (error) Possible null pointer dereference: p2 - otherwise it is redundant to check if p2 is null at line 251 [inc/MAT_Mat.gxx:156]: (error) Memory leak: firstarea [inc/MAT_Mat.gxx:156]: (error) Memory leak: lastarea [inc/BSplSLib.lxx:89]: (error) Null pointer dereference [src/AppDef/AppDef_MyLineTool.cxx:129]: (error) Null pointer dereference [src/BRep/BRep_CurveRepresentation.cxx:176]: (error) Null pointer dereference [src/BRep/BRep_CurveRepresentation.cxx:201]: (error) Null pointer dereference [src/BRep/BRep_CurveRepresentation.cxx:213]: (error) Null pointer dereference [src/BRep/BRep_CurveRepresentation.cxx:224]: (error) Null pointer dereference [src/BRep/BRep_CurveRepresentation.cxx:256]: (error) Null pointer dereference [src/BRep/BRep_CurveRepresentation.cxx:278]: (error) Null pointer dereference [src/BRep/BRep_CurveRepresentation.cxx:290]: (error) Null pointer dereference [src/BRep/BRep_CurveRepresentation.cxx:303]: (error) Null pointer dereference [src/BRep/BRep_CurveRepresentation.cxx:325]: (error) Null pointer dereference [src/BRep/BRep_CurveRepresentation.cxx:347]: (error) Null pointer dereference [src/BRep/BRep_CurveRepresentation.cxx:383]: (error) Null pointer dereference [src/BRep/BRep_CurveRepresentation.cxx:394]: (error) Null pointer dereference [src/BRep/BRep_CurveRepresentation.cxx:407]: (error) Null pointer dereference [inc/Draw_PInterp.hxx:16]: (error) Null pointer dereference [src/BinMDF/BinMDF_TagSourceDriver.cxx:39]: (error) Uninitialized variable: aValue [src/BinMDataStd/BinMDataStd_IntPackedMapDriver.cxx:67]: (error) Uninitialized variable: aKey [src/BinMDataStd/BinMDataStd_IntegerDriver.cxx:42]: (error) Uninitialized variable: aValue [src/BinMDataStd/BinMDataStd_RealDriver.cxx:42]: (error) Uninitialized variable: aValue [src/BinMDataXtd/BinMDataXtd_GeometryDriver.cxx:42]: (error) Uninitialized variable: aType [src/BinMFunction/BinMFunction_FunctionDriver.cxx:53]: (error) Uninitialized variable: aValue [src/BinMNaming/BinMNaming_NamedShapeDriver.cxx:108]: (error) Uninitialized variable: aShapeID [src/BinMNaming/BinMNaming_NamedShapeDriver.cxx:163]: (error) Uninitialized variable: aVer [src/BinMNaming/BinMNaming_NamedShapeDriver.cxx:167]: (error) Uninitialized variable: aCharEvol [src/BinMNaming/BinMNaming_NamingDriver.cxx:143]: (error) Uninitialized variable: aValue [src/BinMNaming/BinMNaming_NamingDriver.cxx:190]: (error) Uninitialized variable: anIndx [src/BinMPrsStd/BinMPrsStd_AISPresentationDriver.cxx:46]: (error) Uninitialized variable: aValue [src/BinMPrsStd/BinMPrsStd_AISPresentationDriver.cxx:70]: (error) Uninitialized variable: aRValue [src/BinMPrsStd/BinMPrsStd_PositionDriver.cxx:45]: (error) Uninitialized variable: aValue [src/BinMXCAFDoc/BinMXCAFDoc_AreaDriver.cxx:36]: (error) Uninitialized variable: aValue [src/BinMXCAFDoc/BinMXCAFDoc_CentroidDriver.cxx:36]: (error) Uninitialized variable: x [src/BinMXCAFDoc/BinMXCAFDoc_CentroidDriver.cxx:36]: (error) Uninitialized variable: y [src/BinMXCAFDoc/BinMXCAFDoc_CentroidDriver.cxx:36]: (error) Uninitialized variable: z [src/BinMXCAFDoc/BinMXCAFDoc_ColorDriver.cxx:35]: (error) Uninitialized variable: R [src/BinMXCAFDoc/BinMXCAFDoc_ColorDriver.cxx:35]: (error) Uninitialized variable: G [src/BinMXCAFDoc/BinMXCAFDoc_ColorDriver.cxx:35]: (error) Uninitialized variable: B [src/BinMXCAFDoc/BinMXCAFDoc_VolumeDriver.cxx:35]: (error) Uninitialized variable: aVol [src/Bnd/Bnd_BoundSortBox.cxx:388]: (error) Possible null pointer dereference: Map - otherwise it is redundant to check if Map is null at line 438 [src/Bnd/Bnd_BoundSortBox.cxx:389]: (error) Possible null pointer dereference: Map - otherwise it is redundant to check if Map is null at line 438 [src/CDM/CDM_COutMessageDriver.cxx:37]: (error) Mismatching allocation and deallocation: anAsciiString [src/Draw/Draw.cxx:289]: (error) Memory leak: thedefault [src/DrawResources/DIFF.c:42]: (error) Resource leak: fp1 [src/DrawResources/DIFF.c:42]: (error) Resource leak: fp2 [src/Expr/Expr_BinaryExpression.cxx:69]: (error) Null pointer dereference [src/Expr/Expr_NumericValue.cxx:40]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve.cxx:326]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve.cxx:454]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve.cxx:522]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve.cxx:1000]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve.cxx:1321]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve.cxx:1323]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve_1.cxx:123]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve_1.cxx:160]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve_1.cxx:201]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve_1.cxx:245]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve_1.cxx:269]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve_1.cxx:416]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve_1.cxx:446]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve_1.cxx:478]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve_1.cxx:511]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve_1.cxx:543]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve_1.cxx:772]: (error) Null pointer dereference [src/Geom/Geom_BSplineCurve_1.cxx:793]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface.cxx:466]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface.cxx:518]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface.cxx:1556]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface.cxx:1558]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface_1.cxx:132]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface_1.cxx:189]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface_1.cxx:253]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface_1.cxx:568]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface_1.cxx:604]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface_1.cxx:729]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface_1.cxx:767]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface_1.cxx:1206]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface_1.cxx:1258]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface_1.cxx:1918]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface_1.cxx:1985]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface_1.cxx:2063]: (error) Null pointer dereference [src/Geom/Geom_BSplineSurface_1.cxx:2146]: (error) Null pointer dereference [src/Geom/Geom_BezierCurve.cxx:150]: (error) Null pointer dereference [src/Geom/Geom_BezierCurve.cxx:153]: (error) Null pointer dereference [src/Geom/Geom_BezierCurve.cxx:383]: (error) Null pointer dereference [src/Geom/Geom_BezierCurve.cxx:385]: (error) Null pointer dereference [src/Geom/Geom_BezierCurve.cxx:387]: (error) Null pointer dereference [src/Geom/Geom_BezierCurve.cxx:544]: (error) Null pointer dereference [src/Geom/Geom_BezierCurve.cxx:567]: (error) Null pointer dereference [src/Geom/Geom_BezierCurve.cxx:593]: (error) Null pointer dereference [src/Geom/Geom_BezierCurve.cxx:618]: (error) Null pointer dereference [src/Geom/Geom_BezierCurve.cxx:647]: (error) Null pointer dereference [src/Geom/Geom_BezierCurve.cxx:897]: (error) Null pointer dereference [src/Geom/Geom_BezierCurve.cxx:899]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:594]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:597]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:620]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:623]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:1000]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:1002]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:1004]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:1006]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:1466]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:1490]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:1535]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:1558]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:1605]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:1630]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:1667]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:1703]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:1797]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:1843]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:2037]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:2139]: (error) Null pointer dereference [src/Geom/Geom_BezierSurface.cxx:2141]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve.cxx:321]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve.cxx:324]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve.cxx:448]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve.cxx:452]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve.cxx:516]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve.cxx:519]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve.cxx:1113]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve.cxx:1115]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve.cxx:1435]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve.cxx:1437]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve_1.cxx:268]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve_1.cxx:416]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve_1.cxx:447]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve_1.cxx:480]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve_1.cxx:514]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve_1.cxx:547]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve_1.cxx:774]: (error) Null pointer dereference [src/Geom2d/Geom2d_BSplineCurve_1.cxx:794]: (error) Null pointer dereference [src/Geom2d/Geom2d_BezierCurve.cxx:152]: (error) Null pointer dereference [src/Geom2d/Geom2d_BezierCurve.cxx:155]: (error) Null pointer dereference [src/Geom2d/Geom2d_BezierCurve.cxx:373]: (error) Null pointer dereference [src/Geom2d/Geom2d_BezierCurve.cxx:375]: (error) Null pointer dereference [src/Geom2d/Geom2d_BezierCurve.cxx:377]: (error) Null pointer dereference [src/Geom2d/Geom2d_BezierCurve.cxx:550]: (error) Null pointer dereference [src/Geom2d/Geom2d_BezierCurve.cxx:573]: (error) Null pointer dereference [src/Geom2d/Geom2d_BezierCurve.cxx:597]: (error) Null pointer dereference [src/Geom2d/Geom2d_BezierCurve.cxx:622]: (error) Null pointer dereference [src/Geom2d/Geom2d_BezierCurve.cxx:647]: (error) Null pointer dereference [src/Geom2d/Geom2d_BezierCurve.cxx:815]: (error) Null pointer dereference [src/Geom2d/Geom2d_BezierCurve.cxx:913]: (error) Null pointer dereference [src/Geom2d/Geom2d_BezierCurve.cxx:915]: (error) Null pointer dereference [src/Graphic2d/Graphic2d_ImageFile.cxx:443]: (error) Memory leak: pheader [src/Graphic2d/Graphic2d_ImageFile.cxx:415]: (error) Data is allocated but not initialized: pheader [src/Graphic3d/Graphic3d_WNTGraphicDevice.cxx:88]: (error) Possible null pointer dereference: fp - otherwise it is redundant to check if fp is null at line 85 [src/HLRBRep/HLRBRep_InternalAlgo.cxx:918]: (error) Mismatching allocation and deallocation: Val [src/HLRBRep/HLRBRep_InternalAlgo.cxx:919]: (error) Mismatching allocation and deallocation: Size [src/HLRBRep/HLRBRep_InternalAlgo.cxx:920]: (error) Mismatching allocation and deallocation: Index [src/IGESFile/IGESFile_Read.cxx:172]: (error) Memory leak: nbWarn [src/IGESFile/IGESFile_Read.cxx:172]: (error) Memory leak: nbFail [src/IGESSelect/IGESSelect_SelectFromDrawing.cxx:44]: (error) Mismatching allocation and deallocation: nums [src/IGESSelect/IGESSelect_SelectFromSingleView.cxx:31]: (error) Mismatching allocation and deallocation: nums [src/IntPatch/IntPatch_LineConstructor.cxx:1062]: (error) Uninitialized variable: utst1 [src/IntPatch/IntPatch_LineConstructor.cxx:1062]: (error) Uninitialized variable: vtst1 [src/IntPatch/IntPatch_LineConstructor.cxx:1063]: (error) Uninitialized variable: utst1 [src/IntPatch/IntPatch_LineConstructor.cxx:1064]: (error) Uninitialized variable: vtst1 [src/IntTools/IntTools_TopolTool.cxx:119]: (error) Uninitialized variable: nbsu [src/IntTools/IntTools_TopolTool.cxx:152]: (error) Uninitialized variable: nbsu [src/MFT/MFT_FontManager.cxx:2289]: (error) Memory leak: pencoding [src/MeshTest/MeshTest.cxx:1209]: (error) instance of "BRepMesh_IncrementalMesh" object destroyed immediately [inc/NCollection_IndexedDataMap.hxx:298]: (error) Possible null pointer dereference: p - otherwise it is redundant to check if p is null at line 290 [inc/NCollection_IndexedDataMap.hxx:372]: (error) Possible null pointer dereference: pNode2 - otherwise it is redundant to check if pNode2 is null at line 365 [inc/NCollection_IndexedDataMap.hxx:391]: (error) Possible null pointer dereference: pNode2 - otherwise it is redundant to check if pNode2 is null at line 384 [inc/NCollection_IndexedDataMap.hxx:414]: (error) Possible null pointer dereference: pNode2 - otherwise it is redundant to check if pNode2 is null at line 407 [inc/NCollection_IndexedDataMap.hxx:452]: (error) Possible null pointer dereference: pNode1 - otherwise it is redundant to check if pNode1 is null at line 445 [inc/NCollection_IndexedDataMap.hxx:471]: (error) Possible null pointer dereference: pNode1 - otherwise it is redundant to check if pNode1 is null at line 464 [src/Message/Message_Msg.cxx:160]: (error) Mismatching allocation and deallocation: sStringBuffer [src/Message/Message_PrinterOStream.cxx:125]: (error) Mismatching allocation and deallocation: astr [src/NIS/NIS_SurfaceDrawer.cxx:169]: (error) Array 'aValueCol[3]' index 3 out of bounds [src/NIS/NIS_SurfaceDrawer.cxx:188]: (error) Array 'aValueCol[3]' index 3 out of bounds [src/NIS/NIS_SurfaceDrawer.cxx:196]: (error) Array 'aValueCol[3]' index 3 out of bounds [src/OSD/OSD_FontMgr.cxx:128]: (error) Memory leak: windir_var [src/OSD/OSD_FontMgr.cxx:128]: (error) Memory leak: font_dir [src/OpenGl/OpenGl_ImageBox.cxx:329]: (error) Memory leak: abuf [src/OpenGl/OpenGl_TextRender.cxx:344]: (error) Memory leak: fontName [src/OpenGl/OpenGl_depthcue.cxx:124]: (error) Possible null pointer dereference: ws_dcues - otherwise it is redundant to check if ws_dcues is null at line 127 [src/OpenGl/OpenGl_filters.cxx:351]: (error) Memory leak: ptr [src/OpenGl/OpenGl_graduatedtrihedron.cxx:282]: (error) Memory leak: newWsIds [src/OpenGl/OpenGl_highlight.cxx:100]: (error) Possible null pointer dereference: ws_hlights - otherwise it is redundant to check if ws_hlights is null at line 101 [src/OpenGl/OpenGl_highlight.cxx:117]: (error) Possible null pointer dereference: ws_hlights - otherwise it is redundant to check if ws_hlights is null at line 120 [src/OpenGl/OpenGl_subrs.cxx:1021]: (error) Possible null pointer dereference: vtexturecoord - otherwise it is redundant to check if vtexturecoord is null at line 1008 [src/OpenGl/OpenGl_subrs.cxx:1022]: (error) Possible null pointer dereference: vtexturecoord - otherwise it is redundant to check if vtexturecoord is null at line 1008 [src/OpenGl/OpenGl_subrs.cxx:1148]: (error) Possible null pointer dereference: vtexturecoord - otherwise it is redundant to check if vtexturecoord is null at line 1135 [src/OpenGl/OpenGl_subrs.cxx:1149]: (error) Possible null pointer dereference: vtexturecoord - otherwise it is redundant to check if vtexturecoord is null at line 1135 [src/OpenGl/OpenGl_subrs.cxx:149]: (error) Mismatching allocation and deallocation: col [src/OpenGl/OpenGl_subrs.cxx:1042]: (error) Deallocating a deallocated pointer: vertices [src/OpenGl/OpenGl_subrs.cxx:1173]: (error) Deallocating a deallocated pointer: vertices [src/OpenGl/OpenGl_triedron.cxx:612]: (error) Mismatching allocation and deallocation: isPlaneActive [src/OpenGl/OpenGl_triedron.cxx:1129]: (error) Mismatching allocation and deallocation: isPlaneActive [src/Poly/Poly_CoherentTriangulation.cxx:578]: (error) instance of "Standard_ProgramError" object destroyed immediately [src/Poly/Poly_CoherentTriangulation.cxx:653]: (error) instance of "Standard_ProgramError" object destroyed immediately [inc/NCollection_IndexedMap.hxx:293]: (error) Possible null pointer dereference: p - otherwise it is redundant to check if p is null at line 285 [inc/NCollection_IndexedMap.hxx:366]: (error) Possible null pointer dereference: pNode2 - otherwise it is redundant to check if pNode2 is null at line 359 [inc/NCollection_IndexedMap.hxx:114]: (error) Null pointer dereference [src/Prs3d/Prs3d_TextAspect.cxx:97]: (error) Uninitialized variable: FontName [src/ShapeAnalysis/ShapeAnalysis_TransferParameters.cxx:56]: (error) Uninitialized variable: f2d [src/ShapeAnalysis/ShapeAnalysis_TransferParameters.cxx:57]: (error) Uninitialized variable: l2d [src/Standard/Standard.cxx:30]: (error) Memory leak: Standard_MMgrFactory::myFMMgr [src/StdSelect/StdSelect_BRepSelectionTool.cxx:682]: (error) instance of "BRepMesh_IncrementalMesh" object destroyed immediately [src/StepData/StepData_StepReaderData.cxx:1828]: (error) Memory leak: indm [src/TCollection/TCollection_ExtendedString.cxx:911]: (error) Possible null pointer dereference: separators - otherwise it is redundant to check if separators is null at line 888 [src/TestTopOpe/TestTopOpe_HDSCommands.cxx:197]: (error) instance of "Standard_Failure" object destroyed immediately [src/TestTopOpeDraw/TestTopOpeDraw_OtherCommands.cxx:216]: (error) Undefined behavior: variable is used as parameter and destination in s[n]printf(). [src/TestTopOpeDraw/TestTopOpeDraw_OtherCommands.cxx:217]: (error) Undefined behavior: variable is used as parameter and destination in s[n]printf(). [src/VrmlData/VrmlData_Group.cxx:278]: (error) Dangerous usage of 'buf' (strncpy doesn't always 0-terminate it) [src/VrmlData/VrmlData_Scene.cxx:1021]: (error) Dangerous usage of 'buf' (strncpy doesn't always 0-terminate it) [src/XCAFPrs/XCAFPrs_AISObject.cxx:96]: (error) Array 'X[2]' index 2 out of bounds [src/XCAFPrs/XCAFPrs_AISObject.cxx:96]: (error) Array 'Y[2]' index 2 out of bounds [src/XCAFPrs/XCAFPrs_AISObject.cxx:96]: (error) Array 'Z[2]' index 2 out of bounds [src/XmlMDataStd/XmlMDataStd_NamedDataDriver.cxx:246]: (error) Uninitialized variable: aCurElement [src/XmlMDataStd/XmlMDataStd_NamedDataDriver.cxx:318]: (error) Uninitialized variable: aCurElement [src/XmlMDataStd/XmlMDataStd_NamedDataDriver.cxx:390]: (error) Uninitialized variable: aCurElement [src/XmlMDataStd/XmlMDataStd_NamedDataDriver.cxx:467]: (error) Uninitialized variable: aCurElement [src/XmlMDataStd/XmlMDataStd_NamedDataDriver.cxx:573]: (error) Uninitialized variable: aCurElement [src/Xw/Xw_get_env.cxx:85]: (error) Memory leak: string [src/Xw/Xw_open_image.cxx:87]: (error) Memory leak: cdata [src/math/math_FunctionRoots.cxx:254]: (error) Memory leak: ptrval

tpaviot commented 11 years ago

A lot of these warnings/erros have been fixed since this issue was reported. Outdated.