nvme-cli-2.11-1.fc42
List of Findings
Error: CPPCHECK_WARNING (CWE-404): [#def1]
nvme-cli-2.11-build/nvme-cli-2.11/fabrics.c:449: error[resourceLeak]: Resource leak: f
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
nvme-cli-2.11-build/nvme-cli-2.11/nbft.c: scope_hint: In function ‘read_nbft_files’
nvme-cli-2.11-build/nvme-cli-2.11/nbft.c:55:24: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
nvme-cli-2.11-build/nvme-cli-2.11/nbft.c: scope_hint: In function ‘read_nbft_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
nvme-cli-2.11-build/nvme-cli-2.11/nbft.c:61:33: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
nvme-cli-2.11-build/nvme-cli-2.11/nbft.c: scope_hint: In function ‘read_nbft_files’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
nvme-cli-2.11-build/nvme-cli-2.11/nbft.c:62:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘entry’
nvme-cli-2.11-build/nvme-cli-2.11/nbft.c: scope_hint: In function ‘read_nbft_files’
Error: CPPCHECK_WARNING (CWE-404): [#def5]
nvme-cli-2.11-build/nvme-cli-2.11/nvme-rpmb.c:226: error[resourceLeak]: Resource leak: fp
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
nvme-cli-2.11-build/nvme-cli-2.11/nvme-rpmb.c: scope_hint: In function ‘rpmb_nonce_init’
nvme-cli-2.11-build/nvme-cli-2.11/nvme-rpmb.c:323:19: warning[-Wanalyzer-malloc-leak]: leak of ‘rpmb_md5(&num, 4)’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def7]
nvme-cli-2.11-build/nvme-cli-2.11/nvme-rpmb.c: scope_hint: In function ‘rpmb_cmd_option’
nvme-cli-2.11-build/nvme-cli-2.11/nvme-rpmb.c:967:33: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘msg_buf’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: CPPCHECK_WARNING (CWE-457): [#def8]
nvme-cli-2.11-build/nvme-cli-2.11/nvme.c:4632: warning[uninitvar]: Uninitialized variable: result_def
Error: CPPCHECK_WARNING (CWE-457): [#def9]
nvme-cli-2.11-build/nvme-cli-2.11/nvme.c:5351: warning[uninitvar]: Uninitialized variable: err
Error: CPPCHECK_WARNING (CWE-404): [#def10]
nvme-cli-2.11-build/nvme-cli-2.11/nvme.c:9638: error[resourceLeak]: Resource leak: fd
Error: CPPCHECK_WARNING (CWE-404): [#def11]
nvme-cli-2.11-build/nvme-cli-2.11/nvme.c:9666: error[resourceLeak]: Resource leak: fd
Error: GCC_ANALYZER_WARNING (CWE-126): [#def12]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/huawei/huawei-nvme.c: scope_hint: In function ‘huawei_get_nvme_info’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/huawei/huawei-nvme.c:96:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
nvme-cli-2.11-build/nvme-cli-2.11/plugins/huawei/huawei-nvme.c:96:9: note: read of 760 bytes from after the end of ‘path’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/huawei/huawei-nvme.c:96:9: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[263]’
Error: CPPCHECK_WARNING (CWE-457): [#def13]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/innogrit/innogrit-nvme.c:72: error[uninitvar]: Uninitialized variable: pdrvinfo->signature
Error: CPPCHECK_WARNING (CWE-457): [#def14]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/innogrit/innogrit-nvme.c:114: error[uninitvar]: Uninitialized variable: pevlog->signature
Error: GCC_ANALYZER_WARNING (CWE-688): [#def15]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/innogrit/innogrit-nvme.c: scope_hint: In function ‘getvsc_eventlog’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/innogrit/innogrit-nvme.c:135:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fp’ where non-null expected
nvme-cli-2.11-build/nvme-cli-2.11/plugins/innogrit/innogrit-nvme.c:2: included_from: Included from here.
/usr/include/stdio.h:735:15: note: argument 4 of ‘fwrite’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/innogrit/innogrit-nvme.c: scope_hint: In function ‘getlogpage_eventlog’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/innogrit/innogrit-nvme.c:169:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fp’ where non-null expected
/usr/include/stdio.h:735:15: note: argument 4 of ‘fwrite’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/innogrit/innogrit-nvme.c: scope_hint: In function ‘innogrit_vsc_getcdump’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/innogrit/innogrit-nvme.c:241:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/innogrit/innogrit-nvme.c:241:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
Error: CPPCHECK_WARNING (CWE-404): [#def19]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/innogrit/innogrit-nvme.c:305: error[resourceLeak]: Resource leak: fp
Error: GCC_ANALYZER_WARNING (CWE-688): [#def20]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/innogrit/innogrit-nvme.c:311:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fp’ where non-null expected
/usr/include/stdio.h:735:15: note: argument 4 of ‘fwrite’ must be non-null
Error: CPPCHECK_WARNING (CWE-456): [#def21]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/intel/intel-nvme.c:1348: error[uninitdata]: Memory is allocated but not initialized: intel
Error: GCC_ANALYZER_WARNING (CWE-688): [#def22]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/intel/intel-nvme.c: scope_hint: In function ‘get_internal_log’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/intel/intel-nvme.c:1420:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘intel’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-404): [#def23]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c: scope_hint: In function ‘parse_params’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:393:32: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
nvme-cli-2.11-build/nvme-cli-2.11/ccan/ccan/str/str.h:8: included_from: Included from here.
nvme-cli-2.11-build/nvme-cli-2.11/ccan/ccan/list/list.h:7: included_from: Included from here.
nvme-cli-2.11-build/nvme-cli-2.11/nvme-print.h:8: included_from: Included from here.
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:15: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c: scope_hint: In function ‘mb_high_latency_log_print’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:655:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("log_c3.csv", "w+")’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:19: included_from: Included from here.
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:655:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("log_c3.csv", "w+")’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:753:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("log_c3.csv", "w+")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:753:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("log_c3.csv", "w+")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:756:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("log_c3.csv", "w+")’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:756:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("log_c3.csv", "w+")’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c: scope_hint: In function ‘mb_selective_download’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:844:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(cfg.fw, 0)’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c: scope_hint: In function ‘ioLatencyHistogramOutput’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:929:9: warning[-Wanalyzer-null-argument]: use of NULL ‘fd’ where non-null expected
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:945:9: note: in expansion of macro ‘fPRINT_PARAM2’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:945:9: note: in expansion of macro ‘fPRINT_PARAM2’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:945:9: note: in expansion of macro ‘fPRINT_PARAM2’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:946:9: note: in expansion of macro ‘fPRINT_PARAM2’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:946:9: note: in expansion of macro ‘fPRINT_PARAM2’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:950:17: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:950:17: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:950:17: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:951:17: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:951:17: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:952:17: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:952:17: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/memblaze/memblaze-nvme.c:4: included_from: Included from here.
/usr/include/stdio.h:735:15: note: argument 4 of ‘fwrite’ must be non-null
Error: CPPCHECK_WARNING (CWE-758): [#def32]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/micron/micron-nvme.c:1068: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-457): [#def33]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/micron/micron-nvme.c: scope_hint: In function ‘GetTimestampInfo’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/micron/micron-nvme.c:1644:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*strOSDirName’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/micron/micron-nvme.c:12: included_from: Included from here.
nvme-cli-2.11-build/nvme-cli-2.11/plugins/micron/micron-nvme.c:11: included_from: Included from here.
/usr/include/string.h:187:14: note: argument 1 of ‘strdup’ must be a pointer to a null-terminated string
Error: CPPCHECK_WARNING (CWE-401): [#def34]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/micron/micron-nvme.c:1826: error[memleakOnRealloc]: Common realloc mistake: 'buffer' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-758): [#def35]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/micron/micron-nvme.c:2659: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-688): [#def36]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/netapp/netapp-nvme.c: scope_hint: In function ‘netapp_ontapdevices_print_regular’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/netapp/netapp-nvme.c:449:25: warning[-Wanalyzer-null-argument]: use of NULL ‘formatstr’ where non-null expected
nvme-cli-2.11-build/nvme-cli-2.11/plugins/netapp/netapp-nvme.c:17: included_from: Included from here.
/usr/include/stdio.h:363:12: note: argument 1 of ‘printf’ must be non-null
Error: CPPCHECK_WARNING (CWE-758): [#def37]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-clear-features.c:19: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING: [#def38]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-hardware-component-log.c: scope_hint: In function ‘get_hwcomp_log_data’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-hardware-component-log.c:197:21: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-hardware-component-log.c:10: included_from: Included from here.
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-hardware-component-log.c:191:9: note: in expansion of macro ‘print_info’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-hardware-component-log.c:197:21: note: only use operands of an integer type inside the size argument
Error: GCC_ANALYZER_WARNING (CWE-688): [#def39]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-nvme.c: scope_hint: In function ‘extract_dump_get_log’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-nvme.c:783:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘data’ where non-null expected
nvme-cli-2.11-build/nvme-cli-2.11/nvme.h:25: included_from: Included from here.
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-nvme.c: scope_hint: In function ‘extract_dump_get_log’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-nvme.c:26: included_from: Included from here.
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-nvme.c:1437:17: note: in expansion of macro ‘nvme_show_result’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-nvme.c: scope_hint: In function ‘error_injection_set’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-nvme.c:2768:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*cfg.file, 0)’
Error: CPPCHECK_WARNING (CWE-476): [#def41]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-telemetry-decode.c:441: warning[nullPointer]: Possible null pointer dereference: pdata
Error: CPPCHECK_WARNING (CWE-476): [#def42]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-telemetry-decode.c:528: error[nullPointer]: Null pointer dereference
Error: GCC_ANALYZER_WARNING (CWE-688): [#def43]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-telemetry-decode.c: scope_hint: In function ‘parse_event_fifo’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-telemetry-decode.c:954:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘description’ where non-null expected
nvme-cli-2.11-build/nvme-cli-2.11/nvme.h:30: included_from: Included from here.
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-telemetry-decode.c:8: included_from: Included from here.
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-telemetry-decode.c:1329:62: note: in expansion of macro ‘json_create_array’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-telemetry-decode.c:1148:39: note: in expansion of macro ‘json_create_object’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c: scope_hint: In function ‘nvme_dump_evtlog’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1279:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1279:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1285:72: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1285:72: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1420:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "wb+")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1420:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "wb+")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1431:26: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "wb+")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1431:26: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "wb+")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def52]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1454:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "wb+")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1454:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "wb+")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1457:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "wb+")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1457:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "wb+")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def56]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1458:35: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "wb+")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1458:35: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "wb+")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1466:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1466:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1472:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1472:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1473:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/scaleflux/sfx-nvme.c:1473:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def64]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/sed/sedopal_cmd.c: scope_hint: In function ‘sedopal_set_key’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/sed/sedopal_cmd.c:145:29: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
nvme-cli-2.11-build/nvme-cli-2.11/plugins/sed/sedopal_cmd.c:7: included_from: Included from here.
/usr/include/string.h:159:12: note: argument 2 of ‘strncmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def65]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/shannon/shannon-nvme.c: scope_hint: In function ‘set_additional_feature’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/shannon/shannon-nvme.c:309:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ffd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def66]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/shannon/shannon-nvme.c:329:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(cfg.file, 0)’
Error: GCC_ANALYZER_WARNING: [#def67]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/shannon/shannon-nvme.c:335:23: warning[-Wanalyzer-fd-use-without-check]: ‘read’ on possibly invalid file descriptor ‘ffd’
Error: CPPCHECK_WARNING (CWE-457): [#def68]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-internal-logs.c:400: warning[uninitvar]: Uninitialized variable: nlog_header->totalnlogs
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-internal-logs.c: scope_hint: In function ‘solidigm_get_internal_log’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-internal-logs.c:872:15: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(cfg.out_dir)’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def70]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry.c: scope_hint: In function ‘solidigm_get_telemetry_log’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry.c:150:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dev’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry.c:9: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def71]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry.c:187:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dev’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry.c:20: included_from: Included from here.
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry.c:114:17: note: in expansion of macro ‘SOLIDIGM_LOG_WARNING’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def72]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry/data-area.c: scope_hint: In function ‘telemetry_log_structure_parse’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry/data-area.c:173:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘array_size_dimension[0]’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry/telemetry-log.h:12: included_from: Included from here.
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry/header.h:8: included_from: Included from here.
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry/data-area.c:9: included_from: Included from here.
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry/data-area.c:465:17: note: in expansion of macro ‘json_object_add_value_array’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry/data-area.c:395:28: note: in expansion of macro ‘json_create_object’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry/data-area.c:422:53: note: in expansion of macro ‘json_create_object’
Error: CPPCHECK_WARNING (CWE-457): [#def73]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-telemetry/nlog.c:124: warning[uninitvar]: Uninitialized variable: str_mismatches
Error: CPPCHECK_WARNING (CWE-457): [#def74]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/solidigm/solidigm-workload-tracker.c:477: warning[uninitvar]: Uninitialized variable: dest
Error: CPPCHECK_WARNING (CWE-758): [#def75]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/wdc/wdc-nvme.c:8553: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def76]
nvme-cli-2.11-build/nvme-cli-2.11/plugins/wdc/wdc-nvme.c:9025: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-775): [#def77]
nvme-cli-2.11-build/nvme-cli-2.11/util/cleanup.h:34:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ffd’
nvme-cli-2.11-build/nvme-cli-2.11/plugins/ocp/ocp-nvme.c: scope_hint: In function ‘error_injection_set’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def78]
nvme-cli-2.11-build/nvme-cli-2.11/util/mem.c: scope_hint: In function ‘nvme_realloc’
nvme-cli-2.11-build/nvme-cli-2.11/util/mem.c:34:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
nvme-cli-2.11-build/nvme-cli-2.11/util/utils.c: scope_hint: In function ‘hex_to_ascii’
nvme-cli-2.11-build/nvme-cli-2.11/util/utils.c:56:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘text’
Error: CPPCHECK_WARNING (CWE-401): [#def80]
nvme-cli-2.11-build/nvme-cli-2.11/util/utils.c:191: error[leakNoVarFunctionCall]: Allocation with hex_to_ascii, sprintf doesn't release it.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
nvme-cli-2.11-build/nvme-cli-2.11/util/utils.c: scope_hint: In function ‘process_field_size_8.part.0’
nvme-cli-2.11-build/nvme-cli-2.11/util/utils.c:204:1: warning[-Wanalyzer-malloc-leak]: leak of ‘hex_to_ascii(&buffer)’
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-7.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | nvme-cli-2.11-1.fc42 |
store-results-to | /tmp/tmpqeu9h3i3/nvme-cli-2.11-1.fc42.tar.xz |
time-created | 2024-11-13 02:04:35 |
time-finished | 2024-11-13 02:06:55 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpqeu9h3i3/nvme-cli-2.11-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpqeu9h3i3/nvme-cli-2.11-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |