Error: COMPILER_WARNING (CWE-704): [#def1] alsa-lib-1.2.15.3/src/conf.c: scope_hint: In function 'snd_config_hook_load_for_all_cards' alsa-lib-1.2.15.3/src/conf.c:4446:51: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type # 4446 | char *s = strchr(driver, '.'); # | ^~~~~~ # 4444| } # 4445| while (1) { # 4446|-> char *s = strchr(driver, '.'); # 4447| if (s == NULL) # 4448| break; Error: COMPILER_WARNING (CWE-704): [#def2] alsa-lib-1.2.15.3/src/conf.c:4446:51: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type # 4444| } # 4445| while (1) { # 4446|-> char *s = strchr(driver, '.'); # 4447| if (s == NULL) # 4448| break; Error: COMPILER_WARNING (CWE-704): [#def3] alsa-lib-1.2.15.3/src/seq/seqmid.c: scope_hint: In function 'snd_seq_parse_address' alsa-lib-1.2.15.3/src/seq/seqmid.c:449:24: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 449 | if ((p = strpbrk(arg, ":.")) != NULL) { # | ^ # 447| } # 448| } else { # 449|-> if ((p = strpbrk(arg, ":.")) != NULL) { # 450| if ((port = atoi(p + 1)) < 0) # 451| return -EINVAL; Error: COMPILER_WARNING (CWE-704): [#def4] alsa-lib-1.2.15.3/src/seq/seqmid.c:449:24: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 447| } # 448| } else { # 449|-> if ((p = strpbrk(arg, ":.")) != NULL) { # 450| if ((port = atoi(p + 1)) < 0) # 451| return -EINVAL; Error: COMPILER_WARNING (CWE-704): [#def5] alsa-lib-1.2.15.3/src/ucm/main.c: scope_hint: In function 'snd_use_case_get_list' alsa-lib-1.2.15.3/src/ucm/main.c:2396:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 2396 | str1 = strchr(identifier, '/'); # | ^ # 2394| err = get_enabled_modifier_list(uc_mgr, list); # 2395| else { # 2396|-> str1 = strchr(identifier, '/'); # 2397| if (str1) { # 2398| str = strdup(str1 + 1); Error: COMPILER_WARNING (CWE-704): [#def6] alsa-lib-1.2.15.3/src/ucm/main.c:2396:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 2394| err = get_enabled_modifier_list(uc_mgr, list); # 2395| else { # 2396|-> str1 = strchr(identifier, '/'); # 2397| if (str1) { # 2398| str = strdup(str1 + 1); Error: COMPILER_WARNING (CWE-704): [#def7] alsa-lib-1.2.15.3/src/ucm/main.c: scope_hint: In function 'snd_use_case_geti' alsa-lib-1.2.15.3/src/ucm/main.c:2721:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 2721 | str1 = strchr(identifier, '/'); # | ^ # 2719| /* nothing here - prepared for fixed identifiers */ # 2720| } else { # 2721|-> str1 = strchr(identifier, '/'); # 2722| if (str1) { # 2723| str = strdup(str1 + 1); Error: COMPILER_WARNING (CWE-704): [#def8] alsa-lib-1.2.15.3/src/ucm/main.c:2721:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 2719| /* nothing here - prepared for fixed identifiers */ # 2720| } else { # 2721|-> str1 = strchr(identifier, '/'); # 2722| if (str1) { # 2723| str = strdup(str1 + 1); Error: COMPILER_WARNING (CWE-704): [#def9] alsa-lib-1.2.15.3/src/ucm/main.c: scope_hint: In function 'snd_use_case_set' alsa-lib-1.2.15.3/src/ucm/main.c:3038:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 3038 | str1 = strchr(identifier, '/'); # | ^ # 3036| err = set_modifier_user(uc_mgr, value, 0); # 3037| else { # 3038|-> str1 = strchr(identifier, '/'); # 3039| if (str1) { # 3040| str = strdup(str1 + 1); Error: COMPILER_WARNING (CWE-704): [#def10] alsa-lib-1.2.15.3/src/ucm/main.c:3038:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 3036| err = set_modifier_user(uc_mgr, value, 0); # 3037| else { # 3038|-> str1 = strchr(identifier, '/'); # 3039| if (str1) { # 3040| str = strdup(str1 + 1); Error: COMPILER_WARNING (CWE-704): [#def11] alsa-lib-1.2.15.3/src/ucm/ucm_subs.c: scope_hint: In function 'strchr_with_escape' alsa-lib-1.2.15.3/src/ucm/ucm_subs.c:832:19: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 832 | s = strchr(str, c); # | ^ # 830| # 831| while (1) { # 832|-> s = strchr(str, c); # 833| if (s && s != str) { # 834| if (*(s - 1) == '\\') { Error: COMPILER_WARNING (CWE-704): [#def12] alsa-lib-1.2.15.3/src/ucm/ucm_subs.c:832:19: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 830| # 831| while (1) { # 832|-> s = strchr(str, c); # 833| if (s && s != str) { # 834| if (*(s - 1) == '\\') {
| 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 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| 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-197.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | alsa-lib-1.2.16.1-2.fc45 |
| diffbase-store-results-to | /tmp/tmp867e6qyd/alsa-lib-1.2.16.1-2.fc45.tar.xz |
| diffbase-time-created | 2026-08-03 13:23:49 |
| diffbase-time-finished | 2026-08-03 13:26:42 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp867e6qyd/alsa-lib-1.2.16.1-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp867e6qyd/alsa-lib-1.2.16.1-2.fc45.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.HEAD-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-197.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 | alsa-lib-1.2.15.3-3.fc44 |
| store-results-to | /tmp/tmpa_rmg2mw/alsa-lib-1.2.15.3-3.fc44.tar.xz |
| time-created | 2026-08-03 13:19:43 |
| time-finished | 2026-08-03 13:23:31 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpa_rmg2mw/alsa-lib-1.2.15.3-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpa_rmg2mw/alsa-lib-1.2.15.3-3.fc44.src.rpm' |
| tool-version | csmock-3.8.7.HEAD-1.el9 |