cppcheck analysis of opencascade_6.3.0.dfsg.1-4.dsc
- ./ros/src/AlienImage/AlienImage_SGIRGBAlienData.cxx:1064 [error] - Invalid number of character (() when these macros are defined: 'PIX'.
- ./ros/src/AppDef/AppDef_MyLineTool.cxx:129 [error] - Null pointer dereference
- ./ros/src/BRep/BRep_CurveRepresentation.cxx:256 [error] - Null pointer dereference
- ./ros/src/BRep/BRep_CurveRepresentation.cxx:290 [error] - Null pointer dereference
- ./ros/src/BRepFill/BRepFill_NSections.cxx:383 [error] - Memory leak: name
- ./ros/src/BRepFill/BRepFill_TrimSurfaceTool.cxx:114 [error] - Memory leak: name
- ./ros/src/BRepOffset/BRepOffset_Offset.cxx:1425 [possible error] - Memory leak: name
- ./ros/src/BRepTest/BRepTest_FilletCommands.cxx:414 [possible error] - Memory leak: pBuilder
- ./ros/src/Draw/Draw.cxx:266 [error] - Memory leak: thedefault
- ./ros/src/Draw/Draw_Interpretor.cxx:130 [error] - Mismatching allocation and deallocation: p
- ./ros/src/Draw/Draw_Window.cxx:772 [possible error] - Resource leak: fimage
- ./ros/src/Draw/Draw_Window.cxx:1493 [possible error] - Memory leak: qdata
- ./ros/src/DrawResources/DIFF.c:42 [error] - Resource leak: fp1
- ./ros/src/DrawResources/DIFF.c:42 [error] - Resource leak: fp2
- ./ros/src/Expr/Expr_BinaryExpression.cxx:69 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineCurve.cxx:1005 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineCurve_1.cxx:136 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineCurve_1.cxx:173 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineCurve_1.cxx:214 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineCurve_1.cxx:258 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineCurve_1.cxx:282 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineCurve_1.cxx:434 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineCurve_1.cxx:469 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineCurve_1.cxx:506 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineCurve_1.cxx:544 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineCurve_1.cxx:581 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineCurve_1.cxx:810 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineSurface.cxx:466 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineSurface_1.cxx:154 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineSurface_1.cxx:211 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineSurface_1.cxx:275 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineSurface_1.cxx:649 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineSurface_1.cxx:685 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineSurface_1.cxx:810 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineSurface_1.cxx:848 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineSurface_1.cxx:1287 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BSplineSurface_1.cxx:1339 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierCurve.cxx:398 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierCurve.cxx:559 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierCurve.cxx:582 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierCurve.cxx:608 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierCurve.cxx:633 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierCurve.cxx:662 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierCurve.cxx:916 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierSurface.cxx:1549 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierSurface.cxx:1618 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierSurface.cxx:1688 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierSurface.cxx:1750 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierSurface.cxx:1786 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierSurface.cxx:1880 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierSurface.cxx:1926 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierSurface.cxx:2125 [error] - Null pointer dereference
- ./ros/src/Geom/Geom_BezierSurface.cxx:2234 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BSplineCurve.cxx:1118 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BSplineCurve_1.cxx:280 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BSplineCurve_1.cxx:433 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BSplineCurve_1.cxx:469 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BSplineCurve_1.cxx:507 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BSplineCurve_1.cxx:546 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BSplineCurve_1.cxx:584 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BSplineCurve_1.cxx:811 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BezierCurve.cxx:168 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BezierCurve.cxx:389 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BezierCurve.cxx:566 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BezierCurve.cxx:589 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BezierCurve.cxx:613 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BezierCurve.cxx:638 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BezierCurve.cxx:663 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BezierCurve.cxx:831 [error] - Null pointer dereference
- ./ros/src/Geom2d/Geom2d_BezierCurve.cxx:930 [error] - Null pointer dereference
- ./ros/src/GeomFill/GeomFill_EvolvedSection.cxx:53 [error] - Mismatching allocation and deallocation: name
- ./ros/src/GeomFill/GeomFill_NSections.cxx:649 [error] - Memory leak: name
- ./ros/src/GeomFill/GeomFill_Pipe.cxx:1089 [possible error] - Memory leak: name
- ./ros/src/GeomFill/GeomFill_Pipe.cxx:1126 [possible error] - Memory leak: name
- ./ros/src/GeomFill/GeomFill_UniformSection.cxx:52 [error] - Mismatching allocation and deallocation: name
- ./ros/src/HLRBRep/HLRBRep_InternalAlgo.cxx:918 [error] - Mismatching allocation and deallocation: Val
- ./ros/src/HLRBRep/HLRBRep_InternalAlgo.cxx:919 [error] - Mismatching allocation and deallocation: Size
- ./ros/src/HLRBRep/HLRBRep_InternalAlgo.cxx:920 [error] - Mismatching allocation and deallocation: Index
- ./ros/src/IFSelect/IFSelect_Functions.cxx:2377 [possible error] - Dangerous usage of std::cin, possible buffer overrun
- ./ros/src/IGESSelect/IGESSelect_SelectFromDrawing.cxx:44 [error] - Mismatching allocation and deallocation: nums
- ./ros/src/IGESSelect/IGESSelect_SelectFromSingleView.cxx:31 [error] - Mismatching allocation and deallocation: nums
- ./ros/src/Interface/Interface_MSG.cxx:129 [error] - Buffer access out-of-bounds
- ./ros/src/Message/Message_Msg.cxx:160 [error] - Mismatching allocation and deallocation: sStringBuffer
- ./ros/src/Message/Message_PrinterOStream.cxx:125 [error] - Mismatching allocation and deallocation: astr
- ./ros/src/OSD/OSD_Host.cxx:183 [error] - Uninitialized variable: noaddress
- ./ros/src/OpenGl/OpenGl_ImageBox.c:259 [possible error] - Memory leak: gbuf
- ./ros/src/OpenGl/OpenGl_ImageBox.c:259 [possible error] - Memory leak: bbuf
- ./ros/src/OpenGl/OpenGl_ImageBox.c:329 [error] - Memory leak: rbuf
- ./ros/src/OpenGl/OpenGl_ImageBox.c:329 [possible error] - Memory leak: gbuf
- ./ros/src/OpenGl/OpenGl_ImageBox.c:329 [possible error] - Memory leak: bbuf
- ./ros/src/OpenGl/OpenGl_ImageBox.c:329 [possible error] - Memory leak: abuf
- ./ros/src/Standard/Standard.cxx:29 [possible error] - Memory leak: Standard_MMgrFactory::myFMMgr
- ./ros/src/StepData/StepData_StepReaderData.cxx:1828 [possible error] - Memory leak: indm
- ./ros/src/TestTopOpe/TestTopOpe_MesureCommands.cxx:95 [possible error] - Memory leak: MES2
- ./ros/src/TestTopOpeDraw/TestTopOpeDraw_DrawableMesure.cxx:168 [possible error] - Memory leak: AOP
- ./ros/src/TestTopOpeDraw/TestTopOpeDraw_DrawableMesure.cxx:182 [possible error] - Memory leak: AOP
- ./ros/src/TestTopOpeDraw/TestTopOpeDraw_DrawableMesure.cxx:138 [possible error] - Memory leak: AOP
- ./ros/src/TestTopOpeDraw/TestTopOpeDraw_DrawableMesure.cxx:153 [possible error] - Memory leak: AOP
- ./ros/src/TestTopOpeDraw/TestTopOpeDraw_OtherCommands.cxx:216 [error] - Undefined behaviour: s is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./ros/src/TestTopOpeDraw/TestTopOpeDraw_OtherCommands.cxx:217 [error] - Undefined behaviour: s is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./ros/src/ViewerTest/ViewerTest.cxx:2969 [error] - Uninitialized variable: curcolum
- ./ros/src/VrmlData/VrmlData_Scene.cxx:1012 [error] - Dangerous usage of 'buf' (strncpy doesn't always 0-terminate it)
- ./ros/src/WOKNT/WOKNT_getopt.c:34 [error] - Invalid number of character ({) when these macros are defined: 'WNT;__cplusplus'.
- ./ros/src/WOKUnix/WOKUnix_Path.cxx:484 [possible error] - Resource leak: fd1
- ./ros/src/XSDRAW/XSDRAW.cxx:227 [possible error] - Dangerous usage of std::cin, possible buffer overrun
- ./ros/src/XSDRAWIGES/XSDRAWIGES.cxx:136 [possible error] - Dangerous usage of std::cin, possible buffer overrun
- ./ros/src/XSDRAWIGES/XSDRAWIGES.cxx:171 [possible error] - Dangerous usage of std::cin, possible buffer overrun
- ./ros/src/XSDRAWIGES/XSDRAWIGES.cxx:324 [possible error] - Dangerous usage of std::cin, possible buffer overrun
- ./ros/src/XSDRAWIGES/XSDRAWIGES.cxx:483 [possible error] - Dangerous usage of std::cin, possible buffer overrun
- ./ros/src/XSDRAWSTEP/XSDRAWSTEP.cxx:406 [possible error] - Dangerous usage of std::cin, possible buffer overrun
- ./ros/src/Xw/Xw_load_xwd_image.cxx:116 [error] - Possible null pointer dereference: pheader - otherwise it is redundant to check if pheader is null at line 251
- ./ros/src/Xw/Xw_load_xwd_image.cxx:190 [error] - Possible null pointer dereference: pheader - otherwise it is redundant to check if pheader is null at line 251
- ./ros/src/Xw/Xw_save_xwd_image.cxx:205 [error] - Memory leak: wname
- ./ros/src/math/math_FunctionRoots.cxx:254 [error] - Memory leak: ptrval
- ./samples/standard/mfc/01_Geometry/src/GeometryApp.cpp:73 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/01_Geometry/src/GeometryApp.h:32 [possible error] - Memory leak: CGeometryApp::pDocTemplateForView3d
- ./samples/standard/mfc/02_TopologySamples/02_1_TopologyPrimitives/src/TopologyPrimitivesApp.cpp:59 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/02_TopologySamples/02_2_TopologyOperations/src/TopologyOperationsApp.cpp:59 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/02_TopologySamples/02_3_TopologyBuilding/src/TopologyBuildingApp.cpp:59 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/02_TopologySamples/02_4_TopologyAnalysis/src/TopologyAnalysisApp.cpp:59 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/02_TopologySamples/02_5_TopologyTransformations/src/TopologyTransformationsApp.cpp:59 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/02_TopologySamples/02_6_TopologyLocalOperations/src/TopologyLocalOperationsApp.cpp:59 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/02_TopologySamples/02_7_TopologyTriangulation/src/TopologyTriangulationApp.cpp:59 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/03_2DSamples/03_1_2DBasic/src/2DBasicApp.cpp:52 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/03_2DSamples/03_2_2DDisplay/src/2DDisplayApp.cpp:52 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/03_2DSamples/03_3_2DSelection/src/2DSelectionApp.cpp:52 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/03_2DSamples/03_4_2DImage/src/2DImageApp.cpp:53 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/03_2DSamples/03_5_2DAttributes/src/2DAttributesApp.cpp:59 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/03_2DSamples/03_6_2DGeom/src/2DGeomApp.cpp:52 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/03_2DSamples/03_7_2DFace/src/2DFaceApp.cpp:53 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/04_AISBasic/src/AISBasicApp.cpp:68 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/05_AISDisplayMode/src/AISDisplayModeApp.cpp:60 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/06_AISSelect/src/AISSelectApp.cpp:59 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/07_Viewer3d/src/Viewer3dApp.cpp:72 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/07_Viewer3d/src/Viewer3dDoc.h:95 [possible error] - Memory leak: CViewer3dDoc::myOffsetDlg
- ./samples/standard/mfc/08_ImportExport/src/ImportExportApp.cpp:68 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/09_Serialize/src/SerializeApp.cpp:68 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/11_Plate/src/PlateApp.cpp:61 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/12_HLR/src/HLRApp.cpp:90 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/12_HLR/src/HLRApp.h:30 [possible error] - Memory leak: CHLRApp::pDocTemplateForView3d
- ./samples/standard/mfc/13_DisplayAnimation/src/DisplayAnimationApp.cpp:71 [possible error] - Memory leak: pMainFrame
- ./samples/standard/mfc/14_Walkthrough/src/WalkthroughApp.cpp:62 [possible error] - Memory leak: pMainFrame
- ./samples/standard/qt/src/Application.h:42 [possible error] - Memory leak: ApplicationWindow::myImportPopup
- ./samples/standard/qt/src/Application.h:43 [possible error] - Memory leak: ApplicationWindow::myExportPopup
- ./samples/standard/qt/src/ApplicationCommon.cxx:47 [possible error] - Memory leak: layout
- ./samples/standard/qt/src/ApplicationCommon.cxx:122 [possible error] - Memory leak: view
- ./samples/standard/qt/src/ApplicationCommon.cxx:130 [possible error] - Memory leak: help
- ./samples/standard/qt/src/ApplicationCommon.h:72 [possible error] - Memory leak: ApplicationCommonWindow::myFilePopup
- ./samples/standard/qt/src/ApplicationCommon.h:73 [possible error] - Memory leak: ApplicationCommonWindow::myWindowPopup
- ./samples/standard/qt/src/MDIWindow.cxx:41 [possible error] - Memory leak: layout
- ./samples/standard/qt/src/MDIWindow.h:38 [possible error] - Memory leak: MDIWindow::myView
- ./samples/standard/qt/src/Main.cxx:40 [possible error] - Memory leak: mw
- ./samples/standard/qt/src/Material.cxx:84 [possible error] - Memory leak: vbl
- ./samples/standard/qt/src/Translate.cxx:85 [possible error] - Memory leak: TranslateDlg::myBox
- ./samples/standard/qt/src/Transparency.cxx:18 [possible error] - Memory leak: base
- ./samples/standard/qt/src/View.cxx:476 [possible error] - Memory leak: ag
- ./samples/standard/qt/src/View.cxx:820 [possible error] - Memory leak: myMaterMenu
- ./samples/tutorial/src/ApplicationCommon.cxx:47 [possible error] - Memory leak: layout
- ./samples/tutorial/src/ApplicationCommon.cxx:122 [possible error] - Memory leak: view
- ./samples/tutorial/src/ApplicationCommon.cxx:130 [possible error] - Memory leak: help
- ./samples/tutorial/src/ApplicationCommon.h:72 [possible error] - Memory leak: ApplicationCommonWindow::myFilePopup
- ./samples/tutorial/src/ApplicationCommon.h:73 [possible error] - Memory leak: ApplicationCommonWindow::myWindowPopup
- ./samples/tutorial/src/MDIWindow.cxx:41 [possible error] - Memory leak: layout
- ./samples/tutorial/src/MDIWindow.h:38 [possible error] - Memory leak: MDIWindow::myView
- ./samples/tutorial/src/Main.cxx:42 [possible error] - Memory leak: mw
- ./samples/tutorial/src/Material.cxx:84 [possible error] - Memory leak: vbl
- ./samples/tutorial/src/Transparency.cxx:18 [possible error] - Memory leak: base
- ./samples/tutorial/src/View.cxx:476 [possible error] - Memory leak: ag
- ./samples/tutorial/src/View.cxx:820 [possible error] - Memory leak: myMaterMenu
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Thu, 16 Dec 2010 05:59:41 +0000, based on results by cppcheck 1.41-modif