Newly introduced findings

List of Findings

Error: CPPCHECK_WARNING (CWE-570): [#def1]
avahi-0.8/avahi-daemon/simple-protocol.c:543: style[knownConditionTrueFalse]: Condition 'credentials_getsockopt(cfd,cred,&len)!=0' is always false
#  541|   
#  542|       n_clients = s->n_clients + 1;
#  543|->     if (credentials_getsockopt(cfd, cred, &len) != 0) {
#  544|           avahi_log_error("credentials_getsockopt(%d): %s", cfd, strerror(errno));
#  545|           return 0;

Error: CPPCHECK_WARNING (CWE-570): [#def2]
avahi-0.8/avahi-daemon/simple-protocol.c:555: style[knownConditionTrueFalse]: Condition 'uid!=0' is always false
#  553|   
#  554|       uid = credentials_getuid(cred);
#  555|->     if (uid != 0 && n_clients > s->max_uid_clients) {
#  556|           // There is enough clients to reach limit for one UID.
#  557|           // Check this UID does not have too many requests already.

Scan Properties

analyzer-version-clang21.1.8
analyzer-version-clippy1.92.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.92.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-88.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.8-8.20260118092143331714.master.397.gd7fb210
diffbase-store-results-to/tmp/tmp4vec01zb/avahi-0.8-8.20260118092143331714.master.397.gd7fb210.tar.xz
diffbase-time-created2026-01-19 13:28:41
diffbase-time-finished2026-01-19 13:33:23
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp4vec01zb/avahi-0.8-8.20260118092143331714.master.397.gd7fb210.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmp4vec01zb/avahi-0.8-8.20260118092143331714.master.397.gd7fb210.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclang, clippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-88.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.8-8.20260119131145213332.pr3.404.g26ff197
store-results-to/tmp/tmpyrswd6bp/avahi-0.8-8.20260119131145213332.pr3.404.g26ff197.tar.xz
time-created2026-01-19 13:33:49
time-finished2026-01-19 13:37:48
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpyrswd6bp/avahi-0.8-8.20260119131145213332.pr3.404.g26ff197.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpyrswd6bp/avahi-0.8-8.20260119131145213332.pr3.404.g26ff197.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9