Error: COMPILER_WARNING (CWE-704): [#def1] annobin-12.99/annocheck/annocheck.c: scope_hint: In function ‘annocheck_open_separate_debuginfo_file’ annobin-12.99/annocheck/annocheck.c:1099:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 1099 | char * dash = strrchr (link, '-'); # | ^~~~~~~ # 1097| So check for earlier versions of the debuginfo file in the directory # 1098| where it is known that Fedora stores its debug files... */ # 1099|-> char * dash = strrchr (link, '-'); # 1100| if (dash) # 1101| { Error: COMPILER_WARNING (CWE-704): [#def2] annobin-12.99/annocheck/annocheck.c:1099:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 1097| So check for earlier versions of the debuginfo file in the directory # 1098| where it is known that Fedora stores its debug files... */ # 1099|-> char * dash = strrchr (link, '-'); # 1100| if (dash) # 1101| { Error: COMPILER_WARNING (CWE-704): [#def3] annobin-12.99/annocheck/built-by.c: scope_hint: In function ‘parse_tool’ annobin-12.99/annocheck/built-by.c:347:18: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 347 | char * space = strchr (tool, ' '); # | ^~~~~~ # 345| * program_return = tool; # 346| # 347|-> char * space = strchr (tool, ' '); # 348| if (space) # 349| { Error: COMPILER_WARNING (CWE-704): [#def4] annobin-12.99/annocheck/built-by.c:347:18: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 345| * program_return = tool; # 346| # 347|-> char * space = strchr (tool, ' '); # 348| if (space) # 349| { Error: COMPILER_WARNING (CWE-704): [#def5] annobin-12.99/annocheck/hardened.c: scope_hint: In function ‘check_annobin_string_section’ annobin-12.99/annocheck/hardened.c:7268:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 7268 | char * space = strchr (ptr, ' '); # | ^~~~~~ # 7266| { # 7267| /* If a name follows a string note, it is the filename for the note. */ # 7268|-> char * space = strchr (ptr, ' '); # 7269| # 7270| if (space != NULL) Error: COMPILER_WARNING (CWE-704): [#def6] annobin-12.99/annocheck/hardened.c:7268:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 7266| { # 7267| /* If a name follows a string note, it is the filename for the note. */ # 7268|-> char * space = strchr (ptr, ' '); # 7269| # 7270| if (space != NULL) Error: COMPILER_WARNING (CWE-704): [#def7] annobin-12.99/annocheck/notes.c: scope_hint: In function ‘check_annobin_string_section’ annobin-12.99/annocheck/notes.c:709:32: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 709 | char * space = strchr (ptr, ' '); # | ^~~~~~ # 707| the filename (and optionally the function name) of # 708| the non-conforming file. */ # 709|-> char * space = strchr (ptr, ' '); # 710| # 711| if (space != NULL) Error: COMPILER_WARNING (CWE-704): [#def8] annobin-12.99/annocheck/notes.c:709:32: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 707| the filename (and optionally the function name) of # 708| the non-conforming file. */ # 709|-> char * space = strchr (ptr, ' '); # 710| # 711| if (space != NULL)
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.92.0 |
| diffbase-analyzer-version-cppcheck | 2.19.1 |
| diffbase-analyzer-version-gcc | 16.0.0 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.0 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-136.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | annobin-13.04-3.fc44 |
| diffbase-store-results-to | /tmp/tmpyjrtqe4v/annobin-13.04-3.fc44.tar.xz |
| diffbase-time-created | 2026-01-08 15:22:01 |
| diffbase-time-finished | 2026-01-08 15:24:30 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpyjrtqe4v/annobin-13.04-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpyjrtqe4v/annobin-13.04-3.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-136.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | annobin-12.99-1.fc43 |
| store-results-to | /tmp/tmpbttzovat/annobin-12.99-1.fc43.tar.xz |
| time-created | 2026-01-08 15:18:35 |
| time-finished | 2026-01-08 15:21:36 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpbttzovat/annobin-12.99-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpbttzovat/annobin-12.99-1.fc43.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |