Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-704): [#def1]
avahi-0.9.rc3/avahi-daemon/static-services.c: scope_hint: In function ‘replacestr’
avahi-0.9.rc3/avahi-daemon/static-services.c:88:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   88 |     while ((e = strstr(pattern, a))) {
#      |               ^
#   86|       char *r = NULL, *e, *n;
#   87|   
#   88|->     while ((e = strstr(pattern, a))) {
#   89|           char *k;
#   90|   

Error: COMPILER_WARNING (CWE-704): [#def2]
avahi-0.9.rc3/avahi-daemon/static-services.c: scope_hint: In function ‘xml_cdata’
avahi-0.9.rc3/avahi-daemon/static-services.c:747:30: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  747 |               char *equals = memchr(s, '=', len);
#      |                              ^~~~~~
#  745|               assert(u->service);
#  746|               if (u->txt_key == NULL) {
#  747|->               char *equals = memchr(s, '=', len);
#  748|   
#  749|                 if (equals != NULL) {

Scan Properties

analyzer-version-clang21.1.8
analyzer-version-clippy1.93.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.1
analyzer-version-gcc-analyzer16.0.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clang21.1.8
diffbase-analyzer-version-clippy1.93.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.1
diffbase-analyzer-version-gcc-analyzer16.0.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclang, clippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-121.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.20260119.105402.g7a5be1b.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameavahi-0.9.rc3-8.20260207191004837468.pr3.14.g30ee790
diffbase-store-results-to/tmp/tmpsfgdyljx/avahi-0.9.rc3-8.20260207191004837468.pr3.14.g30ee790.tar.xz
diffbase-time-created2026-02-07 19:31:30
diffbase-time-finished2026-02-07 19:36:31
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpsfgdyljx/avahi-0.9.rc3-8.20260207191004837468.pr3.14.g30ee790.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpsfgdyljx/avahi-0.9.rc3-8.20260207191004837468.pr3.14.g30ee790.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20260128.181932.g41af877-1.el9
enabled-pluginsclang, clippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-121.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260119.105402.g7a5be1b.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameavahi-0.9.rc3-8.20260206135609058025.master.12.g29e2661
store-results-to/tmp/tmpex2yece6/avahi-0.9.rc3-8.20260206135609058025.master.12.g29e2661.tar.xz
time-created2026-02-07 19:26:19
time-finished2026-02-07 19:31:12
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpex2yece6/avahi-0.9.rc3-8.20260206135609058025.master.12.g29e2661.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpex2yece6/avahi-0.9.rc3-8.20260206135609058025.master.12.g29e2661.src.rpm'
tool-versioncsmock-3.8.3.20260128.181932.g41af877-1.el9