Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-704): [#def1]
bluechi-1.3.0/src/libbluechi/common/parse-util.c: scope_hint: In function ‘parse_selinux_type’
bluechi-1.3.0/src/libbluechi/common/parse-util.c:69:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#   69 |         char *s = strchr(context, ':');
#      |                   ^~~~~~
#   67|   
#   68|           /* Skip user */
#   69|->         char *s = strchr(context, ':');
#   70|           if (s == NULL) {
#   71|                   return NULL;

Error: COMPILER_WARNING (CWE-704): [#def2]
bluechi-1.3.0/src/proxy/main.c: scope_hint: In function ‘parse_node_unit_opt’
bluechi-1.3.0/src/proxy/main.c:55:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#   53|           }
#   54|   
#   55|->         char *split = strchr(opt_node_unit, '_');
#   56|           if (split == NULL || split == opt_node_unit) {
#   57|                   fprintf(stderr, "No underscore in unit name '%s'\n", opt_node_unit);

Scan Properties

analyzer-version-clippy1.91.1
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.91.1
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-124.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-namebluechi-1.3.0-0.202511251221.gitefc460b
diffbase-store-results-to/tmp/tmpt7el2sj1/bluechi-1.3.0-0.202511251221.gitefc460b.tar.xz
diffbase-time-created2025-11-25 12:31:26
diffbase-time-finished2025-11-25 12:32:55
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmpt7el2sj1/bluechi-1.3.0-0.202511251221.gitefc460b.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpt7el2sj1/bluechi-1.3.0-0.202511251221.gitefc460b.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251124.152119.g92ed7a6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-124.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-namebluechi-1.3.0-0.202511250617.git8ccbb13
store-results-to/tmp/tmpuls7k51h/bluechi-1.3.0-0.202511250617.git8ccbb13.tar.xz
time-created2025-11-25 12:29:01
time-finished2025-11-25 12:30:58
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmpuls7k51h/bluechi-1.3.0-0.202511250617.git8ccbb13.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpuls7k51h/bluechi-1.3.0-0.202511250617.git8ccbb13.src.rpm'
tool-versioncsmock-3.8.3.20251124.152119.g92ed7a6-1.el9