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.<U2d20>.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.<U2d20>.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.<U2d20>.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.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-153.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.20250911081222752369.pr411.29.ge872ec5
diffbase-store-results-to/tmp/tmpqhp3s9de/dbus-broker-37-1.20250911081222752369.pr411.29.ge872ec5.tar.xz
diffbase-time-created2025-09-11 11:35:09
diffbase-time-finished2025-09-11 11:38:14
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpqhp3s9de/dbus-broker-37-1.20250911081222752369.pr411.29.ge872ec5.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpqhp3s9de/dbus-broker-37-1.20250911081222752369.pr411.29.ge872ec5.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-153.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.20250905093736473694.main.27.g4f9b8d0
store-results-to/tmp/tmpc_8tuhsg/dbus-broker-37-1.20250905093736473694.main.27.g4f9b8d0.tar.xz
time-created2025-09-11 11:31:22
time-finished2025-09-11 11:34:57
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpc_8tuhsg/dbus-broker-37-1.20250905093736473694.main.27.g4f9b8d0.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpc_8tuhsg/dbus-broker-37-1.20250905093736473694.main.27.g4f9b8d0.src.rpm'
tool-versioncsmock-3.8.2.20250811.215846.gf3b3dbf-1.el9