Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
avahi-0.9.rc2/avahi-daemon/ini-file-parser.c: scope_hint: In function ‘avahi_ini_list_confd_files_sorted’
avahi-0.9.rc2/avahi-daemon/ini-file-parser.c:79:16: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(confd_path)’
#   77|       }
#   78|   
#   79|->     filelist = avahi_malloc0(AVAHI_INI_CONFD_MAX_FILES * sizeof(char *));
#   80|   
#   81|       while ((dentry = readdir(dir)) != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
avahi-0.9.rc2/avahi-daemon/ini-file-parser.c:81:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(confd_path)’
#   79|       filelist = avahi_malloc0(AVAHI_INI_CONFD_MAX_FILES * sizeof(char *));
#   80|   
#   81|->     while ((dentry = readdir(dir)) != NULL) {
#   82|           regex_ret = regexec(&regex, dentry->d_name, 0, NULL, 0);
#   83|           if (regex_ret == 0) {

Error: COMPILER_WARNING (CWE-685): [#def3]
avahi-0.9.rc2/avahi-daemon/main.c: scope_hint: In function ‘main’
avahi-0.9.rc2/avahi-daemon/main.c:1641:37: warning[-Wformat-extra-args]: too many arguments for format
# 1641 |                     avahi_log_debug("Could not load conf.d files, ignoring", confd_path);
#      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1639|                   avahi_log_debug(" - %s", confd_file);
# 1640|                   if (load_config_file(&config, confd_file) < 0) {
# 1641|->                     avahi_log_debug("Could not load conf.d files, ignoring", confd_path);
# 1642|                       break;
# 1643|                   }

Scan Properties

analyzer-version-clang21.1.8
analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.1
analyzer-version-gcc-analyzer16.0.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clang21.1.8
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
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-142.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.20260119.105402.g7a5be1b.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameavahi-0.9.rc2-8.20260120085922839324.master.131.gf65e12e
diffbase-store-results-to/tmp/tmppd4lksts/avahi-0.9.rc2-8.20260120085922839324.master.131.gf65e12e.tar.xz
diffbase-time-created2026-01-21 15:54:45
diffbase-time-finished2026-01-21 16:00:35
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmppd4lksts/avahi-0.9.rc2-8.20260120085922839324.master.131.gf65e12e.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmppd4lksts/avahi-0.9.rc2-8.20260120085922839324.master.131.gf65e12e.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclang, clippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-142.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260119.105402.g7a5be1b.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameavahi-0.9.rc2-8.20260121154349249559.pr841.134.g1a4cf1c
store-results-to/tmp/tmpulmqwgo5/avahi-0.9.rc2-8.20260121154349249559.pr841.134.g1a4cf1c.tar.xz
time-created2026-01-21 16:00:57
time-finished2026-01-21 16:05:43
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpulmqwgo5/avahi-0.9.rc2-8.20260121154349249559.pr841.134.g1a4cf1c.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpulmqwgo5/avahi-0.9.rc2-8.20260121154349249559.pr841.134.g1a4cf1c.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9