Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
conmon-2.1.13/src/healthcheck.c: scope_hint: In function ‘healthcheck_execute_command’
conmon-2.1.13/src/healthcheck.c:338:24: warning[-Wanalyzer-malloc-leak]: leak of ‘runtime_argv’
#  336|   {
#  337|   	if (config == NULL || config->test == NULL || container_id == NULL || runtime_path == NULL || exit_code == NULL) {
#  338|-> 		return false;
#  339|   	}
#  340|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
conmon-2.1.13/src/healthcheck.c: scope_hint: In function ‘healthcheck_parse_oci_annotations’
conmon-2.1.13/src/healthcheck.c:647:28: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(json_object_get_string(json_object_array_get_idx(test_array, (long unsigned int)i)))’
#  645|   
#  646|   			config->test[i - 1] = strdup(json_object_get_string(arg));
#  647|-> 			if (config->test[i - 1] == NULL) {
#  648|   				nwarn("Failed to duplicate healthcheck command argument");
#  649|   				for (int j = 0; j < i - 1; j++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
conmon-2.1.13/src/healthcheck.c:701:33: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(json_object_get_string(json_object_array_get_idx(test_array, 1)))’
#  699|   		config->test[2] = strdup(json_object_get_string(cmd_value));
#  700|   
#  701|-> 		if (config->test[0] == NULL || config->test[1] == NULL || config->test[2] == NULL) {
#  702|   			nwarn("Failed to duplicate healthcheck test command strings");
#  703|   			for (int i = 0; i < 3; i++) {

Scan Properties

analyzer-version-clippy1.89.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer15.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.89.0
diffbase-analyzer-version-cppcheck2.18.3
diffbase-analyzer-version-gcc15.2.1
diffbase-analyzer-version-gcc-analyzer15.2.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-238.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameconmon-2.1.13-1.20250916150902436171.main.85.g095b2ab
diffbase-store-results-to/tmp/tmpp43lm1fq/conmon-2.1.13-1.20250916150902436171.main.85.g095b2ab.tar.xz
diffbase-time-created2025-09-17 01:47:26
diffbase-time-finished2025-09-17 01:49:06
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpp43lm1fq/conmon-2.1.13-1.20250916150902436171.main.85.g095b2ab.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpp43lm1fq/conmon-2.1.13-1.20250916150902436171.main.85.g095b2ab.src.rpm'
diffbase-tool-versioncsmock-3.8.2.20250811.215846.gf3b3dbf-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-238.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameconmon-2.1.13-1.20250917014254460564.pr599.87.gd2ffe91
store-results-to/tmp/tmp7d3fxpb4/conmon-2.1.13-1.20250917014254460564.pr599.87.gd2ffe91.tar.xz
time-created2025-09-17 01:49:29
time-finished2025-09-17 01:50:42
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmp7d3fxpb4/conmon-2.1.13-1.20250917014254460564.pr599.87.gd2ffe91.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp7d3fxpb4/conmon-2.1.13-1.20250917014254460564.pr599.87.gd2ffe91.src.rpm'
tool-versioncsmock-3.8.2.20250811.215846.gf3b3dbf-1.el9