Newly introduced findings

List of Findings

Error: CPPCHECK_WARNING (CWE-570): [#def1]
avahi-0.9.rc3/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.rc3/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-clang22.1.0
analyzer-version-clippy1.94.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.0.1
analyzer-version-gcc-analyzer16.0.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clang22.1.0
diffbase-analyzer-version-clippy1.94.0
diffbase-analyzer-version-cppcheck2.20.0
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-142.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.20260308.181716.g94c371b.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameavahi-0.9.rc3-8.20260312191101903174.master.30.ge0232a7
diffbase-store-results-to/tmp/tmp2znk2c2u/avahi-0.9.rc3-8.20260312191101903174.master.30.ge0232a7.tar.xz
diffbase-time-created2026-03-17 00:03:30
diffbase-time-finished2026-03-17 00:08:08
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmp2znk2c2u/avahi-0.9.rc3-8.20260312191101903174.master.30.ge0232a7.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmp2znk2c2u/avahi-0.9.rc3-8.20260312191101903174.master.30.ge0232a7.src.rpm'
diffbase-tool-versioncsmock-3.8.4.20260302.153719.g8203630-1.el9
enabled-pluginsclang, clippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-142.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260308.181716.g94c371b.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameavahi-0.9.rc3-8.20260316235126636901.pr808.36.gd7d691d
store-results-to/tmp/tmpsv26hk1_/avahi-0.9.rc3-8.20260316235126636901.pr808.36.gd7d691d.tar.xz
time-created2026-03-17 00:08:20
time-finished2026-03-17 00:11:42
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpsv26hk1_/avahi-0.9.rc3-8.20260316235126636901.pr808.36.gd7d691d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpsv26hk1_/avahi-0.9.rc3-8.20260316235126636901.pr808.36.gd7d691d.src.rpm'
tool-versioncsmock-3.8.4.20260302.153719.g8203630-1.el9