Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-252): [#def1]
avahi-0.8/avahi-autoipd/main.c: scope_hint: In function ‘init_rand_seed’
avahi-0.8/avahi-autoipd/main.c:189:9: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
#  189 |         read(fd, &seed, sizeof(seed));
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  187|        * booted at the same time choose different random seeds.  */
#  188|       if ((fd = open(RANDOM_DEVICE, O_RDONLY)) >= 0) {
#  189|->         read(fd, &seed, sizeof(seed));
#  190|           close(fd);
#  191|       }

Error: COMPILER_WARNING (CWE-252): [#def2]
avahi-0.8/avahi-daemon/main.c: scope_hint: In function ‘init_rand_seed’
avahi-0.8/avahi-daemon/main.c:1510:9: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 1510 |         read(fd, &seed, sizeof(seed));
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1508|        * booted at the same time choose different random seeds.  */
# 1509|       if ((fd = open(RANDOM_DEVICE, O_RDONLY)) >= 0) {
# 1510|->         read(fd, &seed, sizeof(seed));
# 1511|           close(fd);
# 1512|       }

Scan Properties

analyzer-version-clippy1.90.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.90.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-104.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.20251028174656556267.pr3.298.g7444354
diffbase-store-results-to/tmp/tmp0tkeo6rf/avahi-0.8-6.20251028174656556267.pr3.298.g7444354.tar.xz
diffbase-time-created2025-10-28 17:58:14
diffbase-time-finished2025-10-28 18:01:40
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp0tkeo6rf/avahi-0.8-6.20251028174656556267.pr3.298.g7444354.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '/tmp/tmp0tkeo6rf/avahi-0.8-6.20251028174656556267.pr3.298.g7444354.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-104.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.20251027070257262551.master.292.g2e69fea
store-results-to/tmp/tmpir882ic1/avahi-0.8-6.20251027070257262551.master.292.g2e69fea.tar.xz
time-created2025-10-28 17:54:07
time-finished2025-10-28 17:57:57
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpir882ic1/avahi-0.8-6.20251027070257262551.master.292.g2e69fea.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '/tmp/tmpir882ic1/avahi-0.8-6.20251027070257262551.master.292.g2e69fea.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9