Task #936 - added.err

back to task #936
download
Error: CPPCHECK_WARNING:
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):
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):
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):
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):
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):
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):
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):
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):
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):
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");