Fixed findings

List of Findings

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) == '\\') {

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.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-197.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.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namealsa-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-created2026-08-03 13:23:49
diffbase-time-finished2026-08-03 13:26:42
diffbase-toolcsmock
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-versioncsmock-3.8.7.HEAD-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-197.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namealsa-lib-1.2.15.3-3.fc44
store-results-to/tmp/tmpa_rmg2mw/alsa-lib-1.2.15.3-3.fc44.tar.xz
time-created2026-08-03 13:19:43
time-finished2026-08-03 13:23:31
titleFixed findings
toolcsmock
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-versioncsmock-3.8.7.HEAD-1.el9