Newly introduced findings

List of Findings

Error: CPPCHECK_WARNING (CWE-398): [#def1]
avahi-0.9.rc5/avahi-daemon/simple-protocol.c:259: style[constVariablePointer]: Variable 'u' can be declared as pointer to const
#  257|   
#  258|   static unsigned uid_clients_count(Server *s, uid_t uid) {
#  259|->     UidClients *u;
#  260|   
#  261|       assert(s);

Error: CPPCHECK_WARNING (CWE-570): [#def2]
avahi-0.9.rc5/avahi-daemon/simple-protocol.c:669: style[knownConditionTrueFalse]: Condition 'credentials_getsockopt(cfd,cred,&len)!=0' is always false
#  667|       }
#  668|   
#  669|->     if (credentials_getsockopt(cfd, cred, &len) != 0) {
#  670|           avahi_log_debug("Failed to get peer credentials for fd %d: %s", cfd, strerror(errno));
#  671|           return 0;

Scan Properties

analyzer-version-clang23.1.2
analyzer-version-clippy1.98.1
analyzer-version-cppcheck2.22.0
analyzer-version-gcc16.2.1
analyzer-version-gcc-analyzer16.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clang23.1.2
diffbase-analyzer-version-clippy1.98.1
diffbase-analyzer-version-cppcheck2.22.0
diffbase-analyzer-version-gcc16.2.1
diffbase-analyzer-version-gcc-analyzer16.2.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-21.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.20260813.215201.gc98a3c4.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameavahi-0.9.rc5-9.20261001110726046411.master.26.g1ac139e
diffbase-store-results-to/tmp/tmpxwvefnbo/avahi-0.9.rc5-9.20261001110726046411.master.26.g1ac139e.tar.xz
diffbase-time-created2026-10-01 12:56:33
diffbase-time-finished2026-10-01 13:02:40
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '--root-override=fedora-rawhide-x86_64-d67f2bdf-16c1-4ba5-8ad7-840e9b3af7b6' '-t' 'cppcheck,clippy,shellcheck,gcc,unicontrol' '-o' '/tmp/tmpxwvefnbo/avahi-0.9.rc5-9.20261001110726046411.master.26.g1ac139e.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpxwvefnbo/avahi-0.9.rc5-9.20261001110726046411.master.26.g1ac139e.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260928.142326.g9f7dd5c-1.el9
enabled-pluginsclang, clippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-21.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260813.215201.gc98a3c4.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameavahi-0.9.rc5-9.20261001124857914570.pr975.37.gc571f5d
store-results-to/tmp/tmpb7jpzejc/avahi-0.9.rc5-9.20261001124857914570.pr975.37.gc571f5d.tar.xz
time-created2026-10-01 13:03:20
time-finished2026-10-01 13:08:05
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '--root-override=fedora-rawhide-x86_64-8e34d66d-1c36-4c12-8105-a4a32e5ddc4f' '-t' 'cppcheck,clippy,shellcheck,gcc,unicontrol' '-o' '/tmp/tmpb7jpzejc/avahi-0.9.rc5-9.20261001124857914570.pr975.37.gc571f5d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpb7jpzejc/avahi-0.9.rc5-9.20261001124857914570.pr975.37.gc571f5d.src.rpm'
tool-versioncsmock-3.8.7.20260928.142326.g9f7dd5c-1.el9