cppcheck analysis of scilab_5.2.1-6.dsc
- ./libs/MALLOC/src/sci_mem_alloc.c:46 [error] - Memory leak: NewPointer
- ./libs/MALLOC/src/sci_mem_alloc.c:72 [error] - Memory leak: NewPointer
- ./modules/api_scilab/src/cpp/api_common.cpp:384 [possible error] - Array 'pstMode[1]' index 1 out of bounds
- ./modules/call_scilab/examples/call_scilab/cpp/common/ccmatrix.h:12 [possible error] - Memory leak: CMatrix::name
- ./modules/call_scilab/src/c/call_scilab.c:130 [error] - Memory leak: ScilabStartupUsed
- ./modules/core/src/c/run.c:436 [possible error] - Array 'equiv_4[1]' index 1 out of bounds
- ./modules/core/src/c/run.c:438 [possible error] - Array 'equiv_4[1]' index 1 out of bounds
- ./modules/core/src/c/tmpdir.c:114 [error] - Undefined behaviour: tmp_dir 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.
- ./modules/dynamic_link/sci_gateway/c/sci_link.c:91 [possible error] - Memory leak: SharedLibraryName
- ./modules/dynamic_link/src/c/AddFunctionInTable.c:61 [error] - Uninitialized variable: loc
- ./modules/graphic_export/src/jni/GL2PSToJOGL.cpp:227 [error] - Memory leak: myArray
- ./modules/graphic_export/src/jni/GL2PSToJOGL.cpp:417 [error] - Memory leak: myArray
- ./modules/graphic_export/src/jni/GL2PSToJOGL.cpp:487 [error] - Memory leak: myArray
- ./modules/graphic_export/src/jni/GL2PSToJOGL.cpp:557 [error] - Memory leak: myArray
- ./modules/graphic_export/src/jni/GL2PSToJOGL.cpp:591 [error] - Memory leak: myArray
- ./modules/gui/sci_gateway/c/sci_mpopup.c:53 [error] - Possible null pointer dereference: res
- ./modules/gui/sci_gateway/cpp/sci_toprint.cpp:221 [error] - Memory leak: paramoutINT
- ./modules/gui/sci_gateway/cpp/sci_toprint.cpp:132 [error] - Undefined behaviour: lines 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.
- ./modules/gui/sci_gateway/cpp/sci_toprint.cpp:150 [error] - Undefined behaviour: lines 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.
- ./modules/gui/src/cpp/GetScreenProperty.cpp:116 [possible error] - Memory leak: value
- ./modules/gui/src/jni/CallScilabBridge.cpp:1326 [error] - Memory leak: myArray
- ./modules/gui/src/jni/CallScilabBridge.cpp:1376 [error] - Memory leak: myArray
- ./modules/gui/src/jni/CallScilabBridge.cpp:1426 [error] - Memory leak: myArray
- ./modules/gui/src/jni/CallScilabBridge.cpp:1476 [error] - Memory leak: myArray
- ./modules/gui/src/jni/CallScilabBridge.cpp:1756 [error] - Memory leak: myArray
- ./modules/gui/src/jni/CallScilabBridge.cpp:1806 [error] - Memory leak: myArray
- ./modules/gui/src/jni/CallScilabBridge.cpp:1972 [error] - Memory leak: myArray
- ./modules/gui/src/jni/CallScilabBridge.cpp:2875 [error] - Memory leak: myArray
- ./modules/gui/src/jni/CallScilabBridge.cpp:3805 [error] - Memory leak: myArray
- ./modules/hdf5/src/c/h5_writeDataToFile.c:267 [error] - Memory leak: pstDataTemp
- ./modules/history_manager/sci_gateway/c/sci_historymanager.c:85 [error] - Possible null pointer dereference: Output
- ./modules/history_manager/src/c/getCommentDateSession.c:90 [error] - Possible null pointer dereference: result
- ./modules/jvm/src/c/getJvmOptions.c:143 [possible error] - Memory leak: jvm_option_string
- ./modules/renderer/src/jni/CenteredTextDrawerGL.cpp:359 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/CenteredTextDrawerGL.cpp:405 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/CenteredTextDrawerGL.cpp:437 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/DrawableFigureGL.cpp:413 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/DrawableFigureGL.cpp:674 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/DrawableFigureGL.cpp:734 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/FilledTextDrawerGL.cpp:361 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/FilledTextDrawerGL.cpp:393 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/FilledTextDrawerGL.cpp:455 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/IsoViewCameraGL.cpp:399 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/IsoViewCameraGL.cpp:431 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/IsoViewCameraGL.cpp:463 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/IsoViewCameraGL.cpp:495 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/IsoViewCameraGL.cpp:527 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/IsoViewCameraGL.cpp:559 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/IsoViewCameraGL.cpp:591 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/IsometricCameraGL.cpp:399 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/IsometricCameraGL.cpp:431 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/IsometricCameraGL.cpp:463 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/IsometricCameraGL.cpp:495 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/IsometricCameraGL.cpp:527 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/IsometricCameraGL.cpp:559 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/IsometricCameraGL.cpp:591 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/StandardTextDrawerGL.cpp:357 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/StandardTextDrawerGL.cpp:389 [error] - Memory leak: myArray
- ./modules/renderer/src/jni/StandardTextDrawerGL.cpp:421 [error] - Memory leak: myArray
- ./modules/scicos_blocks/src/c/mswitch.c:48 [error] - Uninitialized variable: j
- ./modules/shell/src/c/others/mainscic.c:114 [possible error] - Memory leak: argLang
- ./modules/shell/src/c/others/zzledt.c:700 [error] - Undefined behaviour: msg 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.
- ./modules/shell/src/c/others/zzledt.c:704 [error] - Undefined behaviour: msg 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.
- ./modules/sparse/src/c/spOutput.c:422 [error] - Uninitialized variable: Err
- ./modules/umfpack/src/c/taucs_scilab.c:587 [error] - Uninitialized variable: INFO
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 06:02:05 +0000, based on results by cppcheck 1.41-modif