Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-252): [#def1]
avahi-0.9.rc2/avahi-autoipd/main.c: scope_hint: In function ‘init_rand_seed’
avahi-0.9.rc2/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.9.rc2/avahi-daemon/main.c: scope_hint: In function ‘init_rand_seed’
avahi-0.9.rc2/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.92.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.92.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-188.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.9.rc2-6.20260105083754227368.pr826.123.gd70041a
diffbase-store-results-to/tmp/tmp9z3g1ywl/avahi-0.9.rc2-6.20260105083754227368.pr826.123.gd70041a.tar.xz
diffbase-time-created2026-01-05 08:54:22
diffbase-time-finished2026-01-05 08:57:49
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmp9z3g1ywl/avahi-0.9.rc2-6.20260105083754227368.pr826.123.gd70041a.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '/tmp/tmp9z3g1ywl/avahi-0.9.rc2-6.20260105083754227368.pr826.123.gd70041a.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-188.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.9.rc2-6.20251229090240048565.master.121.g13b0273
store-results-to/tmp/tmp9fdqldu5/avahi-0.9.rc2-6.20251229090240048565.master.121.g13b0273.tar.xz
time-created2026-01-05 08:49:32
time-finished2026-01-05 08:54:03
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmp9fdqldu5/avahi-0.9.rc2-6.20251229090240048565.master.121.g13b0273.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '/tmp/tmp9fdqldu5/avahi-0.9.rc2-6.20251229090240048565.master.121.g13b0273.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9