Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
dbus-broker-37/src/launch/config.c: scope_hint: In function ‘config_path_new_dir’
dbus-broker-37/src/launch/config.c:88:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*((ConfigState)*(void *)userdata).current.<Ucd20>.bustype.name’
dbus-broker-37/src/launch/config.c: scope_hint: In function ‘config_path_new_dir’
#   86|                   (*filep)->is_dir = true;
#   87|   
#   88|->         return r;
#   89|   }
#   90|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
dbus-broker-37/src/launch/config.c: scope_hint: In function ‘config_parser_end_fn’
dbus-broker-37/src/launch/config.c:1034:27: warning[-Wanalyzer-malloc-leak]: leak of ‘*((ConfigState)*(void *)userdata).current.<Ucd20>.bustype.name’
# 1032|           case CONFIG_NODE_TYPE:
# 1033|                   state->current->bustype.name = strdup(state->current->cdata);
# 1034|->                 if (!state->current->bustype.name) {
# 1035|                           state->error = error_origin(-ENOMEM);
# 1036|                           return;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
dbus-broker-37/src/launch/config.c:1155:27: warning[-Wanalyzer-malloc-leak]: leak of ‘*((ConfigState)*(void *)userdata).current.<Ucd20>.bustype.name’
# 1153|           case CONFIG_NODE_SERVICEDIR: {
# 1154|                   state->current->servicedir.path = strdup(state->current->cdata);
# 1155|->                 if (!state->current->servicedir.path) {
# 1156|                           state->error = error_origin(-ENOMEM);
# 1157|                           return;

Scan Properties

analyzer-version-clippy1.87.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.1.1
analyzer-version-gcc-analyzer15.1.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.87.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.1.1
diffbase-analyzer-version-gcc-analyzer15.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-195.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-namedbus-broker-37-1.20250618120649006052.pr406.14.g2ec6742
diffbase-store-results-to/tmp/tmp0952eont/dbus-broker-37-1.20250618120649006052.pr406.14.g2ec6742.tar.xz
diffbase-time-created2025-06-18 12:21:55
diffbase-time-finished2025-06-18 12:27:16
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,shellcheck,gcc,cppcheck,unicontrol' '-o' '/tmp/tmp0952eont/dbus-broker-37-1.20250618120649006052.pr406.14.g2ec6742.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp0952eont/dbus-broker-37-1.20250618120649006052.pr406.14.g2ec6742.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250522.153104.ga728c5b-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-195.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-namedbus-broker-37-1.20250618115404265068.main.12.gd4597c1
store-results-to/tmp/tmp6ja1bc_8/dbus-broker-37-1.20250618115404265068.main.12.gd4597c1.tar.xz
time-created2025-06-18 12:15:11
time-finished2025-06-18 12:21:08
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,shellcheck,gcc,cppcheck,unicontrol' '-o' '/tmp/tmp6ja1bc_8/dbus-broker-37-1.20250618115404265068.main.12.gd4597c1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp6ja1bc_8/dbus-broker-37-1.20250618115404265068.main.12.gd4597c1.src.rpm'
tool-versioncsmock-3.8.1.20250522.153104.ga728c5b-1.el9