Task #94663 - added.err

back to task #94663
download
Error: GCC_ANALYZER_WARNING (CWE-401):
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):
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):
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|                   }