Newly introduced findings

List of Findings

Error: CPPCHECK_WARNING (CWE-398): [#def1]
avahi-0.8/avahi-core/netlink.c:49: style[constVariablePointer]: Variable 'cmsg' can be declared as pointer to const
#   47|       ssize_t bytes;
#   48|       struct msghdr smsg;
#   49|->     struct cmsghdr *cmsg;
#   50|       struct ucred *cred;
#   51|       struct iovec iov;

Error: CPPCHECK_WARNING (CWE-563): [#def2]
avahi-0.8/avahi-core/netlink.c:50: style[unusedVariable]: Unused variable: cred
#   48|       struct msghdr smsg;
#   49|       struct cmsghdr *cmsg;
#   50|->     struct ucred *cred;
#   51|       struct iovec iov;
#   52|       struct nlmsghdr *p;

Error: CPPCHECK_WARNING (CWE-563): [#def3]
avahi-0.8/avahi-core/netlink.c:79: style[unreadVariable]: Variable 'cmsg' is assigned a value that is never used.
#   77|       }
#   78|   
#   79|->     cmsg = CMSG_FIRSTHDR(&smsg);
#   80|   #ifdef SO_PASSCRED
#   81|       if (!cmsg || cmsg->cmsg_type != SCM_CREDENTIALS) {

Error: CPPCHECK_WARNING (CWE-563): [#def4]
avahi-0.8/avahi-core/netlink.c:119: style[unreadVariable]: Variable 'on' is assigned a value that is never used.
#  117|   AvahiNetlink *avahi_netlink_new(const AvahiPoll *poll_api, uint32_t groups, void (*cb) (AvahiNetlink *nl, struct nlmsghdr *n, void* userdata), void* userdata) {
#  118|       int fd = -1;
#  119|->     const int on = 1;
#  120|       struct sockaddr_nl addr;
#  121|       AvahiNetlink *nl = NULL;

Scan Properties

analyzer-version-clippy1.91.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer15.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.91.0
diffbase-analyzer-version-cppcheck2.18.3
diffbase-analyzer-version-gcc15.2.1
diffbase-analyzer-version-gcc-analyzer15.2.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-91.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameavahi-0.8-6.20251106141808785688.master.307.ge5d15ee
diffbase-store-results-to/tmp/tmpzlg78z_4/avahi-0.8-6.20251106141808785688.master.307.ge5d15ee.tar.xz
diffbase-time-created2025-11-06 22:08:17
diffbase-time-finished2025-11-06 22:12:09
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpzlg78z_4/avahi-0.8-6.20251106141808785688.master.307.ge5d15ee.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '/tmp/tmpzlg78z_4/avahi-0.8-6.20251106141808785688.master.307.ge5d15ee.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-91.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameavahi-0.8-6.20251106215627596331.pr3.312.g799f5c0
store-results-to/tmp/tmphsxnqahg/avahi-0.8-6.20251106215627596331.pr3.312.g799f5c0.tar.xz
time-created2025-11-06 22:12:23
time-finished2025-11-06 22:15:27
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmphsxnqahg/avahi-0.8-6.20251106215627596331.pr3.312.g799f5c0.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '/tmp/tmphsxnqahg/avahi-0.8-6.20251106215627596331.pr3.312.g799f5c0.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9