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: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): [#def3] 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): [#def4] 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): [#def5] 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): [#def6] 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): [#def7] 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: [#def8] 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): [#def9] 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 ||
| 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-242.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/tmp2r_lh_fq/avahi-0.9.rc3-8.20260310192455421494.master.27.gbe1cdfd.tar.xz |
| diffbase-time-created | 2026-03-11 14:30:29 |
| diffbase-time-finished | 2026-03-11 14:34:26 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmp2r_lh_fq/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/tmp2r_lh_fq/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-242.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.20260311141725068114.pr841.38.g2bbf29d |
| store-results-to | /tmp/tmpfl0p3fyq/avahi-0.9.rc3-8.20260311141725068114.pr841.38.g2bbf29d.tar.xz |
| time-created | 2026-03-11 14:34:56 |
| time-finished | 2026-03-11 14:38:19 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpfl0p3fyq/avahi-0.9.rc3-8.20260311141725068114.pr841.38.g2bbf29d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpfl0p3fyq/avahi-0.9.rc3-8.20260311141725068114.pr841.38.g2bbf29d.src.rpm' |
| tool-version | csmock-3.8.4.20260302.153719.g8203630-1.el9 |