Error: CLANG_WARNING: [#def1] avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:260:13: warning[unix.Errno]: An undefined value may be read from 'errno' # 258| snprintf(test_confd_temp_dir, sizeof(test_confd_temp_dir), "%s", test_confd_temp_dir_templ); # 259| if (mkdtemp(test_confd_temp_dir) == NULL) { # 260|-> if (errno == EEXIST) # 261| fprintf(stderr, "error: dir '%s' already exists\n", test_confd_temp_dir); # 262| else Error: CPPCHECK_WARNING (CWE-252): [#def2] avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1016: warning[ignoredReturnValue]: Return value of function isalnum() is not used. # 1014| if ((config.server_config.host_name != NULL) && strlen(config.server_config.host_name) == 32) { # 1015| for (int i = 0; i < 32; i++) { # 1016|-> isalnum(config.server_config.host_name[i]); # 1017| } # 1018| fprintf(stdout, Error: CPPCHECK_WARNING (CWE-686): [#def3] avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1180: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. # 1178| } # 1179| if (config.server_config.n_cache_entries_max != 4444) { # 1180|-> fprintf(stderr, "error: [server] cache-entries-max '%i' does not match the expectations\n", config.server_config.n_cache_entries_max); # 1181| unexpected++; # 1182| } Error: CPPCHECK_WARNING (CWE-686): [#def4] avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1189: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. # 1187| } # 1188| if (config.n_clients_max != 1111) { # 1189|-> fprintf(stderr, "error: [server] clients-max '%i' does not match the expectations\n", config.n_clients_max); # 1190| unexpected++; # 1191| } Error: CPPCHECK_WARNING (CWE-686): [#def5] avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1193: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. # 1191| } # 1192| if (config.n_objects_per_client_max != 555) { # 1193|-> fprintf(stderr, "error: [server] objects-per-client-max '%i' does not match the expectations\n", config.n_objects_per_client_max); # 1194| unexpected++; # 1195| } Error: CPPCHECK_WARNING (CWE-686): [#def6] avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1197: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. # 1195| } # 1196| if (config.n_entries_per_entry_group_max != 33) { # 1197|-> fprintf(stderr, "error: [server] entries-per-entry-group-max '%i' does not match the expectations\n", config.n_entries_per_entry_group_max); # 1198| unexpected++; # 1199| } Error: CPPCHECK_WARNING (CWE-686): [#def7] avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1206: warning[invalidPrintfArgType_sint]: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. # 1204| } # 1205| if (config.server_config.ratelimit_burst != 999) { # 1206|-> fprintf(stderr, "error: [server] ratelimit-burst '%i' does not match the expectations\n", config.server_config.ratelimit_burst); # 1207| unexpected++; # 1208| } Error: CPPCHECK_WARNING (CWE-476): [#def8] avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1246: warning[nullPointerRedundantCheck]: Either the condition 'config.publish_dns_servers!=NULL' is redundant or there is possible null pointer dereference: config.publish_dns_servers. # 1244| } # 1245| if ((config.publish_dns_servers != NULL) || # 1246|-> (config.publish_dns_servers[0] != NULL) || # 1247| (config.publish_dns_servers[1] != NULL) || # 1248| (config.publish_dns_servers[2] == NULL)) { Error: CLANG_WARNING: [#def9] avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1246:10: warning[core.NullDereference]: Array access (via field 'publish_dns_servers') results in a null pointer dereference # 1244| } # 1245| if ((config.publish_dns_servers != NULL) || # 1246|-> (config.publish_dns_servers[0] != NULL) || # 1247| (config.publish_dns_servers[1] != NULL) || # 1248| (config.publish_dns_servers[2] == NULL)) { Error: CPPCHECK_WARNING (CWE-476): [#def10] avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:1247: warning[nullPointerRedundantCheck]: Either the condition 'config.publish_dns_servers!=NULL' is redundant or there is possible null pointer dereference: config.publish_dns_servers. # 1245| if ((config.publish_dns_servers != NULL) || # 1246| (config.publish_dns_servers[0] != NULL) || # 1247|-> (config.publish_dns_servers[1] != NULL) || # 1248| (config.publish_dns_servers[2] == NULL)) { # 1249| if (strcmp("10.9.8.1", config.publish_dns_servers[0]) != 0 ||
| analyzer-version-clang | 22.1.0 |
| analyzer-version-clippy | 1.94.0 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.0.1 |
| analyzer-version-gcc-analyzer | 16.0.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clang | 22.1.0 |
| diffbase-analyzer-version-clippy | 1.94.0 |
| diffbase-analyzer-version-cppcheck | 2.20.0 |
| diffbase-analyzer-version-gcc | 16.0.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clang, clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-115.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260308.181716.g94c371b.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | avahi-0.9.rc3-8.20260311195052230054.master.28.gbb9987f |
| diffbase-store-results-to | /tmp/tmpios_ng9k/avahi-0.9.rc3-8.20260311195052230054.master.28.gbb9987f.tar.xz |
| diffbase-time-created | 2026-03-11 22:12:46 |
| diffbase-time-finished | 2026-03-11 22:17:10 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpios_ng9k/avahi-0.9.rc3-8.20260311195052230054.master.28.gbb9987f.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpios_ng9k/avahi-0.9.rc3-8.20260311195052230054.master.28.gbb9987f.src.rpm' |
| diffbase-tool-version | csmock-3.8.4.20260302.153719.g8203630-1.el9 |
| enabled-plugins | clang, clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-115.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260308.181716.g94c371b.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | avahi-0.9.rc3-8.20260311215637964795.pr841.39.gdd1c4af |
| store-results-to | /tmp/tmp29078dsi/avahi-0.9.rc3-8.20260311215637964795.pr841.39.gdd1c4af.tar.xz |
| time-created | 2026-03-11 22:17:35 |
| time-finished | 2026-03-11 22:21:05 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmp29078dsi/avahi-0.9.rc3-8.20260311215637964795.pr841.39.gdd1c4af.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmp29078dsi/avahi-0.9.rc3-8.20260311215637964795.pr841.39.gdd1c4af.src.rpm' |
| tool-version | csmock-3.8.4.20260302.153719.g8203630-1.el9 |