Error: CLANG_WARNING: [#def1] 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): [#def2] 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): [#def3] 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): [#def4] 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): [#def5] 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): [#def6] 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): [#def7] 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: [#def8] 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): [#def9] 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 ||
| 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-31.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.20260310192455421494.master.27.gbe1cdfd |
| diffbase-store-results-to | /tmp/tmpeq5tme2f/avahi-0.9.rc3-8.20260310192455421494.master.27.gbe1cdfd.tar.xz |
| diffbase-time-created | 2026-03-11 12:54:17 |
| diffbase-time-finished | 2026-03-11 12:58:19 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpeq5tme2f/avahi-0.9.rc3-8.20260310192455421494.master.27.gbe1cdfd.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpeq5tme2f/avahi-0.9.rc3-8.20260310192455421494.master.27.gbe1cdfd.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-31.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.20260311123846009999.pr841.38.g2d6b960 |
| store-results-to | /tmp/tmpv1j6bfv2/avahi-0.9.rc3-8.20260311123846009999.pr841.38.g2d6b960.tar.xz |
| time-created | 2026-03-11 12:58:44 |
| time-finished | 2026-03-11 13:02:51 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpv1j6bfv2/avahi-0.9.rc3-8.20260311123846009999.pr841.38.g2d6b960.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpv1j6bfv2/avahi-0.9.rc3-8.20260311123846009999.pr841.38.g2d6b960.src.rpm' |
| tool-version | csmock-3.8.4.20260302.153719.g8203630-1.el9 |