Newly introduced findings

List of Findings

Error: CPPCHECK_WARNING (CWE-570): [#def1]
avahi-0.9.rc2/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.9.rc2/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-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-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-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-135.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.rc2-8.20260118083344001250.master.129.gd7fb210
diffbase-store-results-to/tmp/tmpsqcv3y3u/avahi-0.9.rc2-8.20260118083344001250.master.129.gd7fb210.tar.xz
diffbase-time-created2026-01-19 10:53:14
diffbase-time-finished2026-01-19 10:57:32
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpsqcv3y3u/avahi-0.9.rc2-8.20260118083344001250.master.129.gd7fb210.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '/tmp/tmpsqcv3y3u/avahi-0.9.rc2-8.20260118083344001250.master.129.gd7fb210.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-135.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.rc2-8.20260118164308069311.pr808.135.g0d04a33
store-results-to/tmp/tmp8da2usgl/avahi-0.9.rc2-8.20260118164308069311.pr808.135.g0d04a33.tar.xz
time-created2026-01-19 10:57:57
time-finished2026-01-19 11:01:51
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp8da2usgl/avahi-0.9.rc2-8.20260118164308069311.pr808.135.g0d04a33.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '/tmp/tmp8da2usgl/avahi-0.9.rc2-8.20260118164308069311.pr808.135.g0d04a33.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9