Error: SHELLCHECK_WARNING (CWE-156): [#def1] /etc/profile.d/which2.sh:5:26: warning[SC2046]: Quote this to prevent word splitting. # 3| # 4| if [ -r /proc/$$/exe ]; then # 5|-> SHELLNAME=$(basename $(readlink /proc/$$/exe)) # 6| else # 7| SHELLNAME="unknown" Error: COMPILER_WARNING (CWE-704): [#def2] which-2.23/tilde.c: scope_hint: In function ‘tilde_expand’ which-2.23/tilde.c:192:10: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 192 | result = strchr(string, '~'); # | ^ # 190| # 191| result_index = result_size = 0; # 192|-> result = strchr(string, '~'); # 193| if (result) # 194| result = (char *) xmalloc(result_size = (strlen(string) + 16)); Error: COMPILER_WARNING (CWE-704): [#def3] which-2.23/tilde.c:192:10: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 190| # 191| result_index = result_size = 0; # 192|-> result = strchr(string, '~'); # 193| if (result) # 194| result = (char *) xmalloc(result_size = (strlen(string) + 16));
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-10.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | which-2.23-4.fc44 |
| store-results-to | /tmp/tmpitjz0wdj/which-2.23-4.fc44.tar.xz |
| time-created | 2026-08-03 21:34:56 |
| time-finished | 2026-08-03 21:36:46 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpitjz0wdj/which-2.23-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpitjz0wdj/which-2.23-4.fc44.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |