Task #103842 - added.err
back to task #103842download
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:952: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
# 950| }
# 951| if (config.server_config.n_cache_entries_max != 4444) {
# 952|-> fprintf(stderr, "error: [server] cache-entries-max '%i' does not match the expectations\n", config.server_config.n_cache_entries_max);
# 953| unexpected++;
# 954| }
Error: CPPCHECK_WARNING (CWE-686):
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:961: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
# 959| }
# 960| if (config.n_clients_max != 1111) {
# 961|-> fprintf(stderr, "error: [server] clients-max '%i' does not match the expectations\n", config.n_clients_max);
# 962| unexpected++;
# 963| }
Error: CPPCHECK_WARNING (CWE-686):
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:965: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
# 963| }
# 964| if (config.n_objects_per_client_max != 555) {
# 965|-> fprintf(stderr, "error: [server] objects-per-client-max '%i' does not match the expectations\n", config.n_objects_per_client_max);
# 966| unexpected++;
# 967| }
Error: CPPCHECK_WARNING (CWE-686):
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:969: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
# 967| }
# 968| if (config.n_entries_per_entry_group_max != 33) {
# 969|-> fprintf(stderr, "error: [server] entries-per-entry-group-max '%i' does not match the expectations\n", config.n_entries_per_entry_group_max);
# 970| unexpected++;
# 971| }
Error: CPPCHECK_WARNING (CWE-686):
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:978: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
# 976| }
# 977| if (config.server_config.ratelimit_burst != 999) {
# 978|-> fprintf(stderr, "error: [server] ratelimit-burst '%i' does not match the expectations\n", config.server_config.ratelimit_burst);
# 979| unexpected++;
# 980| }
Error: CPPCHECK_WARNING (CWE-476):
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1018: warning[nullPointerRedundantCheck]: Either the condition 'config.publish_dns_servers!=NULL' is redundant or there is possible null pointer dereference: config.publish_dns_servers.
# 1016| }
# 1017| if ((config.publish_dns_servers != NULL) ||
# 1018|-> (config.publish_dns_servers[0] != NULL) ||
# 1019| (config.publish_dns_servers[1] != NULL) ||
# 1020| (config.publish_dns_servers[2] == NULL)) {
Error: CLANG_WARNING:
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1018:10: warning[core.NullDereference]: Array access (via field 'publish_dns_servers') results in a null pointer dereference
# 1016| }
# 1017| if ((config.publish_dns_servers != NULL) ||
# 1018|-> (config.publish_dns_servers[0] != NULL) ||
# 1019| (config.publish_dns_servers[1] != NULL) ||
# 1020| (config.publish_dns_servers[2] == NULL)) {
Error: CPPCHECK_WARNING (CWE-476):
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1019: warning[nullPointerRedundantCheck]: Either the condition 'config.publish_dns_servers!=NULL' is redundant or there is possible null pointer dereference: config.publish_dns_servers.
# 1017| if ((config.publish_dns_servers != NULL) ||
# 1018| (config.publish_dns_servers[0] != NULL) ||
# 1019|-> (config.publish_dns_servers[1] != NULL) ||
# 1020| (config.publish_dns_servers[2] == NULL)) {
# 1021| if (strcmp("10.9.8.1", config.publish_dns_servers[0]) != 0 ||