Newly introduced defects
List of Defects
Error: CPPCHECK_WARNING: [#def1]
nvme-cli-2.9.1-build/nvme-cli-2.9.1/nbft.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
nvme-cli-2.9.1-build/nvme-cli-2.9.1/nvme.c: scope_hint: In function ‘tls_key’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/nvme.c:9442:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fd’
# 9440| err = argconfig_parse(argc, argv, desc, opts);
# 9441| if (err)
# 9442|-> return err;
# 9443|
# 9444| if (cfg.keyfile) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
nvme-cli-2.9.1-build/nvme-cli-2.9.1/nvme.c:9442:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
# 9440| err = argconfig_parse(argc, argv, desc, opts);
# 9441| if (err)
# 9442|-> return err;
# 9443|
# 9444| if (cfg.keyfile) {
Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c: scope_hint: In function ‘mb_high_latency_log_print’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:655:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("log_c3.csv", "w+")’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:19: included_from: Included from here.
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
# 653| fPRINT_PARAM1("Timestamp Type QID CID NSID StartLBA NumLBA Latency\n");
# 654| fPRINT_PARAM1("---------------------------------------------------------------------------------------------\n");
# 655|-> return 0;
# 656| }
# 657|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:655:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("log_c3.csv", "w+")’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
# 653| fPRINT_PARAM1("Timestamp Type QID CID NSID StartLBA NumLBA Latency\n");
# 654| fPRINT_PARAM1("---------------------------------------------------------------------------------------------\n");
# 655|-> return 0;
# 656| }
# 657|
Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:753:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("log_c3.csv", "w+")’
# 751| return err;
# 752|
# 753|-> fdi = fopen(FID_C3_LOG_FILENAME, "w+");
# 754|
# 755| glp_high_latency_show_bar(fdi, DO_PRINT_FLAG);
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:753:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("log_c3.csv", "w+")’
# 751| return err;
# 752|
# 753|-> fdi = fopen(FID_C3_LOG_FILENAME, "w+");
# 754|
# 755| glp_high_latency_show_bar(fdi, DO_PRINT_FLAG);
Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:756:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("log_c3.csv", "w+")’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
# 754|
# 755| glp_high_latency_show_bar(fdi, DO_PRINT_FLAG);
# 756|-> err = nvme_get_log_simple(dev_fd(dev), GLP_ID_VU_GET_HIGH_LATENCY_LOG, sizeof(buf), &buf);
# 757|
# 758| while (1) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:756:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("log_c3.csv", "w+")’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:651:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:652:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:653:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:654:9: note: in expansion of macro ‘fPRINT_PARAM1’
# 754|
# 755| glp_high_latency_show_bar(fdi, DO_PRINT_FLAG);
# 756|-> err = nvme_get_log_simple(dev_fd(dev), GLP_ID_VU_GET_HIGH_LATENCY_LOG, sizeof(buf), &buf);
# 757|
# 758| while (1) {
Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c: scope_hint: In function ‘mb_selective_download’
nvme-cli-2.9.1-build/nvme-cli-2.9.1/plugins/memblaze/memblaze-nvme.c:844:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(cfg.fw, 0)’
# 842| }
# 843|
# 844|-> fw_fd = open(cfg.fw, O_RDONLY);
# 845| if (fw_fd < 0) {
# 846| fprintf(stderr, "no firmware file provided\n");
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-19.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | nvme-cli-2.8-1.fc40 |
diffbase-store-results-to | /tmp/tmprp1g7c2p/nvme-cli-2.8-1.fc40.tar.xz |
diffbase-time-created | 2024-07-03 16:21:39 |
diffbase-time-finished | 2024-07-03 16:24:18 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmprp1g7c2p/nvme-cli-2.8-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmprp1g7c2p/nvme-cli-2.8-1.fc40.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-19.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | nvme-cli-2.9.1-2.fc41 |
store-results-to | /tmp/tmpjalszmwd/nvme-cli-2.9.1-2.fc41.tar.xz |
time-created | 2024-07-03 16:24:43 |
time-finished | 2024-07-03 16:27:00 |
title | Newly introduced defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpjalszmwd/nvme-cli-2.9.1-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpjalszmwd/nvme-cli-2.9.1-2.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |