Newly introduced findings

List of Findings

Error: CPPCHECK_WARNING (CWE-563): [#def1]
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c:65: style[unreadVariable]: Variable 'filename_len' is assigned a value that is never used.
#   63|   
#   64|   char** avahi_ini_list_confd_files_sorted(const char* confd_path, int* confd_file_count) {
#   65|->     int filename_len = 0;
#   66|       int suffix_len = 0;
#   67|       const char *suffix = ".conf";

Error: CPPCHECK_WARNING (CWE-398): [#def2]
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c:65: style[variableScope]: The scope of the variable 'filename_len' can be reduced.
#   63|   
#   64|   char** avahi_ini_list_confd_files_sorted(const char* confd_path, int* confd_file_count) {
#   65|->     int filename_len = 0;
#   66|       int suffix_len = 0;
#   67|       const char *suffix = ".conf";

Error: CPPCHECK_WARNING (CWE-398): [#def3]
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c:624: style[variableScope]: The scope of the variable 't' can be reduced.
#  622|                       c->server_config.add_service_cookie = is_yes(p->value);
#  623|                   else if (strcasecmp(p->key, "publish-dns-servers") == 0) {
#  624|->                     char **e, **t;
#  625|   
#  626|                       avahi_log_debug("publish-dns-servers: processing line: '%s'", p->value);

Scan Properties

analyzer-version-clang22.1.0
analyzer-version-clippy1.93.1
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.93.1
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-225.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.20260225.110632.gf6ecc5a.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameavahi-0.9.rc3-8.20260304091258506601.master.26.g942a3e9
diffbase-store-results-to/tmp/tmpqdw_g9kr/avahi-0.9.rc3-8.20260304091258506601.master.26.g942a3e9.tar.xz
diffbase-time-created2026-03-04 11:33:41
diffbase-time-finished2026-03-04 11:38:17
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpqdw_g9kr/avahi-0.9.rc3-8.20260304091258506601.master.26.g942a3e9.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpqdw_g9kr/avahi-0.9.rc3-8.20260304091258506601.master.26.g942a3e9.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-225.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260225.110632.gf6ecc5a.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameavahi-0.9.rc3-8.20260304112313600281.pr841.33.g79b6b15
store-results-to/tmp/tmpn48dqb7m/avahi-0.9.rc3-8.20260304112313600281.pr841.33.g79b6b15.tar.xz
time-created2026-03-04 11:38:31
time-finished2026-03-04 11:42:23
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpn48dqb7m/avahi-0.9.rc3-8.20260304112313600281.pr841.33.g79b6b15.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpn48dqb7m/avahi-0.9.rc3-8.20260304112313600281.pr841.33.g79b6b15.src.rpm'
tool-versioncsmock-3.8.4.20260302.153719.g8203630-1.el9