cppcheck analysis of gridengine_6.2u5-2.dsc
- ./source/3rdparty/plpa/plpa-1.3.1/src/plpa-taskset/tokens.c:949 [error] - Memory leak: yyptr
- ./source/3rdparty/qmon/Xmt310/Xmt/FindFile.c:753 [error] - Uninitialized variable: n
- ./source/3rdparty/qmon/Xmt310/Xmt/FindFile.c:775 [error] - Uninitialized variable: len
- ./source/3rdparty/qmon/spinbox/Spinbox.c:1055 [error] - Uninitialized variable: buffer
- ./source/3rdparty/qtcsh/ed.defns.c:1768 [error] - Invalid number of character (() when these macros are defined: 'DEBUG_EDIT'.
- ./source/3rdparty/qtcsh/ed.inputl.c:609 [error] - instance of "process" object destroyed immediately
- ./source/3rdparty/qtcsh/sh.c:1465 [error] - Resource leak: unit
- ./source/3rdparty/qtcsh/sh.c:2268 [error] - Resource leak: mailbox
- ./source/3rdparty/qtcsh/sh.c:1343 [error] - instance of "process" object destroyed immediately
- ./source/3rdparty/qtcsh/sh.c:1661 [error] - instance of "process" object destroyed immediately
- ./source/3rdparty/qtcsh/sh.dir.c:982 [error] - Null pointer dereference
- ./source/3rdparty/qtcsh/sh.func.c:2303 [error] - instance of "process" object destroyed immediately
- ./source/3rdparty/qtcsh/sh.set.c:872 [error] - Common realloc mistake: "exppath" nulled but not freed upon failure
- ./source/3rdparty/qtcsh/tw.parse.c:1520 [error] - Resource leak: dir_fd
- ./source/3rdparty/remote/rlogin.c:793 [error] - Uninitialized variable: obuf
- ./source/3rdparty/remote/rsh.c:378 [error] - Memory leak: args
- ./source/3rdparty/sge_depend/parse.c:454 [error] - Possible null pointer dereference: file - otherwise it is redundant to check if file is null at line 456
- ./source/clients/qmon/qmon_arcustom.c:233 [error] - Undefined behaviour: buf 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.
- ./source/clients/qmon/qmon_cq.c:1652 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_job.c:1626 [error] - Invalid number of character (() when these macros are defined: 'FIXME'.
- ./source/clients/qmon/qmon_jobcustom.c:461 [error] - Undefined behaviour: buf 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.
- ./source/clients/qmon/qmon_jobcustom.c:463 [error] - Undefined behaviour: buf 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.
- ./source/clients/qmon/qmon_jobcustom.c:490 [error] - Undefined behaviour: buf 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.
- ./source/clients/qmon/qmon_jobcustom.c:516 [error] - Undefined behaviour: buf 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.
- ./source/clients/qmon/qmon_jobcustom.c:793 [error] - Undefined behaviour: buf 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.
- ./source/clients/qmon/qmon_jobcustom.c:1754 [error] - Undefined behaviour: buf 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.
- ./source/clients/qmon/qmon_main.c:136 [error] - Buffer overrun possible for long cmd-line args
- ./source/clients/qmon/qmon_queue.c:920 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:924 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:928 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:930 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:931 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:933 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:935 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:936 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:940 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:942 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:944 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:948 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:951 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:954 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:956 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:958 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:960 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:962 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:964 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:966 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:968 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:970 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:972 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:974 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:976 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:978 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:980 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:983 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:985 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:987 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:989 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:990 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:992 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:994 [error] - Undefined behaviour: info 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.
- ./source/clients/qmon/qmon_queue.c:1166 [error] - Invalid number of character (() when these macros are defined: 'FIXME'.
- ./source/clients/qmon/qmon_util.c:590 [error] - Undefined behaviour: command 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.
- ./source/clients/qmon/qmon_widgets.c:781 [error] - Undefined behaviour: buf 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.
- ./source/clients/qmon/qmon_widgets.c:816 [error] - Undefined behaviour: buf 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.
- ./source/clients/qmon/qmon_widgets.c:832 [error] - Undefined behaviour: buf 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.
- ./source/clients/qmon/qmon_widgets.c:834 [error] - Undefined behaviour: buf 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.
- ./source/clients/qmon/qmon_widgets.c:848 [error] - Undefined behaviour: buf 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.
- ./source/clients/qmon/tree_demo.c:685 [error] - Possible null pointer dereference: item
- ./source/clients/qmon/tree_demo.c:704 [error] - Possible null pointer dereference: item
- ./source/clients/qmon/tree_demo.c:723 [error] - Possible null pointer dereference: item
- ./source/clients/qmon/tree_demo.c:742 [error] - Possible null pointer dereference: item
- ./source/clients/qrstat/qrstat_report_handler_stdout.h:36 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./source/clients/qrstat/qrstat_filter.h:36 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./source/clients/qrstat/qrstat_report_handler_xml.h:36 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./source/daemons/common/admin_mail.c:296 [error] - Undefined behaviour: sge_mail_body_total 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.
- ./source/daemons/common/qmaster_heartbeat.c:179 [error] - Resource leak: fp
- ./source/daemons/execd/get_path.c:208 [error] - Undefined behaviour: exp_path 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.
- ./source/daemons/execd/get_path.c:213 [error] - Undefined behaviour: exp_path 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.
- ./source/daemons/execd/get_path.c:218 [error] - Undefined behaviour: exp_path 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.
- ./source/daemons/execd/get_path.c:222 [error] - Undefined behaviour: exp_path 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.
- ./source/daemons/execd/get_path.c:226 [error] - Undefined behaviour: exp_path 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.
- ./source/daemons/execd/get_path.c:184 [error] - Dangerous usage of 'tmp' (strncpy doesn't always 0-terminate it)
- ./source/daemons/qmaster/sge_sharetree_qmaster.c:475 [error] - Invalid number of character ({) when these macros are defined: 'notdef'.
- ./source/daemons/shepherd/builtin_starter.c:935 [error] - Memory leak: stdin_path_for_fs
- ./source/daemons/shepherd/builtin_starter.c:2059 [error] - Memory leak: buf
- ./source/daemons/shepherd/builtin_starter.c:494 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./source/daemons/shepherd/builtin_starter.c:936 [error] - Memory leak: stdin_path_for_fs
- ./source/daemons/shepherd/shepherd.c:2167 [error] - Null pointer dereference
- ./source/libs/comm/cl_app_message_queue.c:102 [error] - Memory leak: new_elem
- ./source/libs/comm/cl_commlib.c:7748 [error] - Possible null pointer dereference: handle
- ./source/libs/comm/cl_commlib.c:7749 [error] - Possible null pointer dereference: handle
- ./source/libs/comm/cl_communication.c:2445 [error] - Memory leak: hostspec.unresolved_name
- ./source/libs/comm/cl_communication.c:2450 [error] - Memory leak: hostspec.resolved_name
- ./source/libs/comm/cl_connection_list.c:153 [error] - Memory leak: new_elem
- ./source/libs/comm/cl_endpoint_list.c:264 [error] - Memory leak: new_elem
- ./source/libs/comm/cl_host_list.c:355 [error] - Memory leak: new_host_spec.resolved_name
- ./source/libs/comm/cl_host_list.c:367 [error] - Memory leak: new_host_spec.unresolved_name
- ./source/libs/cull/cull_dump_scan.c:188 [error] - Memory leak: dp
- ./source/libs/cull/cull_list.c:708 [error] - Possible null pointer dereference: ep
- ./source/libs/cull/cull_what.c:534 [error] - Uninitialized variable: error_status
- ./source/libs/cull/ownerL.h:39 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./source/libs/cull/example2.c:173 [error] - Resource leak: calf
- ./source/libs/gdi/sge_gdi_ctx.c:1370 [error] - Possible null pointer dereference: ctx
- ./source/libs/japi/compile.c:165 [error] - Resource leak: fp
- ./source/libs/japi/test_drmaa.c:2106 [error] - Resource leak: fp
- ./source/libs/japi/test_drmaa_mcpu.c:58 [error] - Memory leak: ids
- ./source/libs/japi/test_drmaa_perf.c:244 [error] - Memory leak: ids
- ./source/libs/rmon/rmon_macros.c:567 [error] - Memory leak: helper
- ./source/libs/sgeobj/sge_userset_JC_L.h:65 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./source/libs/sgeobj/sge_cull_xml.h:46 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./source/libs/sgeobj/sge_jsv_script.c:989 [error] - Common realloc mistake: "socket_array" nulled but not freed upon failure
- ./source/libs/sgeobj/sge_jsv_script.c:990 [error] - Common realloc mistake: "core_array" nulled but not freed upon failure
- ./source/libs/sgeobj/sge_userset_JC_L.h:65 [error] - Invalid number of character ({) when these macros are defined: '__SGE_GDI_LIBRARY_HOME_OBJECT_FILE__;__cplusplus'.
- ./source/libs/uti/sge_pty.c:305 [error] - Resource leak: fdm
- ./source/libs/uti/sge_string.c:550 [error] - Possible null pointer dereference: str
- ./source/libs/uti/sge_string.c:1345 [error] - Possible null pointer dereference: pstr
- ./source/libs/uti/sge_uidgid.c:2171 [error] - Invalid number of character (() when these macros are defined: 'INTERIX;SGE_THREADSAFE_UTIL'.
- ./source/libs/uti/test_threads.c:82 [error] - Resource leak: fd
- ./source/security/krb/krb_lib.c:1386 [error] - Invalid deallocation
- ./source/utilbin/sge_passwd.c:710 [error] - Memory leak: encryptKey
- ./source/utilbin/sge_share_mon.c:396 [error] - Memory leak: ofile
- ./source/utilbin/sge_share_mon.c:396 [error] - Memory leak: output_mode
- ./source/utilbin/windows/SGE_Helper_Service/Job.cpp:386 [error] - Mismatching allocation and deallocation: pszBuffer
- ./source/utilbin/windows/SGE_Helper_Service/Job.cpp:474 [error] - Mismatching allocation and deallocation: pszBuffer
- ./source/utilbin/windows/SGE_Helper_Service/JobStart.cpp:834 [error] - Possible null pointer dereference: pAce
- ./source/utilbin/windows/SGE_Helper_Service/JobStart.cpp:835 [error] - Possible null pointer dereference: pAce
- ./source/utilbin/windows/SGE_Helper_Service/JobStart.cpp:837 [error] - Possible null pointer dereference: pAce
- ./source/utilbin/windows/SGE_Helper_Service/JobStart.cpp:839 [error] - Possible null pointer dereference: pAce
- ./source/utilbin/windows/qloadsensor/pdhquery.c:102 [error] - Common realloc mistake: "exp_list" nulled but not freed upon failure
- ./source/utilbin/windows/qloadsensor/pdhservice.c:281 [error] - Common realloc mistake: "perf_data" nulled but not freed upon failure
- ./source/utilbin/windows/qloadsensor/simplelog.c:78 [error] - Uninitialized variable: ret
- ./source/utilbin/work.c:309 [error] - Memory leak: kmp
- ./source/utilbin/work.c:367 [error] - Uninitialized variable: a
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Mon, 28 Mar 2011 06:58:10 +0000, based on results by cppcheck 1.46