Fixed findings

List of Findings

Error: CPPCHECK_WARNING (CWE-570): [#def1]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/wide-area.c:134: style[unsignedLessThanZero]: Checking if unsigned expression 'l->engine->n_dns_servers' is less than zero.
#  132|       assert(p);
#  133|   
#  134|->     if (l->engine->n_dns_servers <= 0)
#  135|           return -1;
#  136|   

Error: CPPCHECK_WARNING (CWE-570): [#def2]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/wide-area.c:608: style[knownConditionTrueFalse]: Condition 'e->fd_ipv6>=0' is always false
#  606|           avahi_log_error(__FILE__": Failed to create wide area sockets: %s", strerror(errno));
#  607|   
#  608|->         if (e->fd_ipv6 >= 0)
#  609|               close(e->fd_ipv6);
#  610|   

Error: CPPCHECK_WARNING (CWE-570): [#def3]
avahi-0.9.rc1-build/avahi-0.9.rc1/avahi-core/wide-area.c:611: style[knownConditionTrueFalse]: Condition 'e->fd_ipv4>=0' is always false
#  609|               close(e->fd_ipv6);
#  610|   
#  611|->         if (e->fd_ipv4 >= 0)
#  612|               close(e->fd_ipv4);
#  613|   

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer14.2.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer14.2.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-28.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameavahi-0.9.rc2-30.20241127171641448708.pr662.1.gf4b843f
diffbase-store-results-to/tmp/tmpmkad0s12/avahi-0.9.rc2-30.20241127171641448708.pr662.1.gf4b843f.tar.xz
diffbase-time-created2024-11-27 17:34:50
diffbase-time-finished2024-11-27 17:38:00
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpmkad0s12/avahi-0.9.rc2-30.20241127171641448708.pr662.1.gf4b843f.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--cppcheck-add-flag=--enable=style' '/tmp/tmpmkad0s12/avahi-0.9.rc2-30.20241127171641448708.pr662.1.gf4b843f.src.rpm'
diffbase-tool-versioncsmock-3.8.0-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-28.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-nameavahi-0.9.rc1-30.20241119073634036707.master.71.g1dade81
store-results-to/tmp/tmpoi_jdjbm/avahi-0.9.rc1-30.20241119073634036707.master.71.g1dade81.tar.xz
time-created2024-11-27 17:30:44
time-finished2024-11-27 17:34:36
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpoi_jdjbm/avahi-0.9.rc1-30.20241119073634036707.master.71.g1dade81.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--cppcheck-add-flag=--enable=style' '/tmp/tmpoi_jdjbm/avahi-0.9.rc1-30.20241119073634036707.master.71.g1dade81.src.rpm'
tool-versioncsmock-3.8.0-1.el9