Task #103838 - added.err

back to task #103838
download
Error: CLANG_WARNING:
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:209:13: warning[unix.Errno]: An undefined value may be read from 'errno'
#  207|       snprintf(test_confd_temp_dir, sizeof(test_confd_temp_dir), "%s", test_confd_temp_dir_templ);
#  208|       if (mkdtemp(test_confd_temp_dir) == NULL) {
#  209|->         if (errno == EEXIST)
#  210|               fprintf(stderr, "error: dir '%s' already exists\n", test_confd_temp_dir);
#  211|           else

Error: CPPCHECK_WARNING (CWE-686):
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:956: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
#  954|       }
#  955|       if (config.server_config.n_cache_entries_max != 4444) {
#  956|->         fprintf(stderr, "error: [server] cache-entries-max '%i' does not match the expectations\n", config.server_config.n_cache_entries_max);
#  957|           unexpected++;
#  958|       }

Error: CPPCHECK_WARNING (CWE-686):
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:960: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
#  958|       }
#  959|       if (config.n_clients_max != 1111) {
#  960|->         fprintf(stderr, "error: [server] clients-max '%i' does not match the expectations\n", config.n_clients_max);
#  961|           unexpected++;
#  962|       }

Error: CPPCHECK_WARNING (CWE-686):
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:964: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
#  962|       }
#  963|       if (config.n_objects_per_client_max != 555) {
#  964|->         fprintf(stderr, "error: [server] objects-per-client-max '%i' does not match the expectations\n", config.n_objects_per_client_max);
#  965|           unexpected++;
#  966|       }

Error: CPPCHECK_WARNING (CWE-686):
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:968: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
#  966|       }
#  967|       if (config.n_entries_per_entry_group_max != 33) {
#  968|->         fprintf(stderr, "error: [server] entries-per-entry-group-max '%i' does not match the expectations\n", config.n_entries_per_entry_group_max);
#  969|           unexpected++;
#  970|       }

Error: CPPCHECK_WARNING (CWE-686):
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:976: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
#  974|       }
#  975|       if (config.server_config.ratelimit_burst != 999) {
#  976|->         fprintf(stderr, "error: [server] ratelimit-burst '%i' does not match the expectations\n", config.server_config.ratelimit_burst);
#  977|           unexpected++;
#  978|       }

Error: CPPCHECK_WARNING (CWE-476):
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1016: warning[nullPointerRedundantCheck]: Either the condition 'config.publish_dns_servers!=NULL' is redundant or there is possible null pointer dereference: config.publish_dns_servers.
# 1014|       }
# 1015|       if ((config.publish_dns_servers != NULL) ||
# 1016|->         (config.publish_dns_servers[0] != NULL) ||
# 1017|           (config.publish_dns_servers[1] != NULL) ||
# 1018|           (config.publish_dns_servers[2] == NULL)) {

Error: CLANG_WARNING:
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1016:10: warning[core.NullDereference]: Array access (via field 'publish_dns_servers') results in a null pointer dereference
# 1014|       }
# 1015|       if ((config.publish_dns_servers != NULL) ||
# 1016|->         (config.publish_dns_servers[0] != NULL) ||
# 1017|           (config.publish_dns_servers[1] != NULL) ||
# 1018|           (config.publish_dns_servers[2] == NULL)) {

Error: CPPCHECK_WARNING (CWE-476):
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1017: warning[nullPointerRedundantCheck]: Either the condition 'config.publish_dns_servers!=NULL' is redundant or there is possible null pointer dereference: config.publish_dns_servers.
# 1015|       if ((config.publish_dns_servers != NULL) ||
# 1016|           (config.publish_dns_servers[0] != NULL) ||
# 1017|->         (config.publish_dns_servers[1] != NULL) ||
# 1018|           (config.publish_dns_servers[2] == NULL)) {
# 1019|           if (strcmp("10.9.8.1", config.publish_dns_servers[0]) != 0 ||