Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-704): [#def1]
iptables-1.8.11/extensions/libxt_sctp.c: scope_hint: In function ‘parse_sctp_chunk’
iptables-1.8.11/extensions/libxt_sctp.c:211:40: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  211 |                                 if ((p = strchr(sctp_chunk_names[i].valid_flags,
#      |                                        ^
#  209|   				int bit;
#  210|   
#  211|-> 				if ((p = strchr(sctp_chunk_names[i].valid_flags, 
#  212|   						toupper(chunk_flags[j]))) != NULL) {
#  213|   					bit = p - sctp_chunk_names[i].valid_flags;

Error: COMPILER_WARNING (CWE-704): [#def2]
iptables-1.8.11/extensions/libxt_sctp.c:211:40: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  209|   				int bit;
#  210|   
#  211|-> 				if ((p = strchr(sctp_chunk_names[i].valid_flags, 
#  212|   						toupper(chunk_flags[j]))) != NULL) {
#  213|   					bit = p - sctp_chunk_names[i].valid_flags;

Error: COMPILER_WARNING (CWE-704): [#def3]
iptables-1.8.11/iptables/xshared.c: scope_hint: In function ‘parse_rule_range’
iptables-1.8.11/iptables/xshared.c:912:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  912 |         char *colon = strchr(argv, ':'), *buffer;
#      |                       ^~~~~~
#  910|   static void parse_rule_range(struct xt_cmd_parse *p, const char *argv)
#  911|   {
#  912|-> 	char *colon = strchr(argv, ':'), *buffer;
#  913|   
#  914|   	if (colon) {

Error: COMPILER_WARNING (CWE-704): [#def4]
iptables-1.8.11/iptables/xshared.c:912:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  910|   static void parse_rule_range(struct xt_cmd_parse *p, const char *argv)
#  911|   {
#  912|-> 	char *colon = strchr(argv, ':'), *buffer;
#  913|   
#  914|   	if (colon) {

Error: COMPILER_WARNING (CWE-704): [#def5]
iptables-1.8.11/libxtables/xtables.c: scope_hint: In function 'xtables_ipparse_multiple'
iptables-1.8.11/libxtables/xtables.c:1770:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 1770 |                 next = strchr(loop, ',');
#      |                      ^
# 1768|   		while (isspace(*loop))
# 1769|   			++loop;
# 1770|-> 		next = strchr(loop, ',');
# 1771|   		if (next != NULL)
# 1772|   			len = next - loop;

Error: COMPILER_WARNING (CWE-704): [#def6]
iptables-1.8.11/libxtables/xtables.c:1770:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 1768|   		while (isspace(*loop))
# 1769|   			++loop;
# 1770|-> 		next = strchr(loop, ',');
# 1771|   		if (next != NULL)
# 1772|   			len = next - loop;

Error: COMPILER_WARNING (CWE-704): [#def7]
iptables-1.8.11/libxtables/xtables.c: scope_hint: In function 'xtables_ip6parse_multiple'
iptables-1.8.11/libxtables/xtables.c:2069:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 2069 |                 next = strchr(loop, ',');
#      |                      ^
# 2067|   		while (isspace(*loop))
# 2068|   			++loop;
# 2069|-> 		next = strchr(loop, ',');
# 2070|   		if (next != NULL)
# 2071|   			len = next - loop;

Error: COMPILER_WARNING (CWE-704): [#def8]
iptables-1.8.11/libxtables/xtables.c:2069:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 2067|   		while (isspace(*loop))
# 2068|   			++loop;
# 2069|-> 		next = strchr(loop, ',');
# 2070|   		if (next != NULL)
# 2071|   			len = next - loop;

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
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.95.0
diffbase-analyzer-version-cppcheck2.20.0
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-136.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-nameiptables-1.8.13-1.fc45
diffbase-store-results-to/tmp/tmpqm14exks/iptables-1.8.13-1.fc45.tar.xz
diffbase-time-created2026-06-01 13:03:24
diffbase-time-finished2026-06-01 13:05:01
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpqm14exks/iptables-1.8.13-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpqm14exks/iptables-1.8.13-1.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-136.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-nameiptables-1.8.11-13.fc44
store-results-to/tmp/tmph9ln3uxf/iptables-1.8.11-13.fc44.tar.xz
time-created2026-06-01 13:01:03
time-finished2026-06-01 13:03:09
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmph9ln3uxf/iptables-1.8.11-13.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmph9ln3uxf/iptables-1.8.11-13.fc44.src.rpm'
tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9