Error: CPPCHECK_WARNING (CWE-398): [#def1] avahi-0.9.rc5/avahi-client/rr-test.c:91: style[constVariablePointer]: Variable 'r' can be declared as pointer to const # 89| const AvahiPoll *poll_api; # 90| AvahiClient *client; # 91|-> AvahiRecordBrowser *r; # 92| # 93| simple_poll = avahi_simple_poll_new(); Error: CPPCHECK_WARNING (CWE-398): [#def2] avahi-0.9.rc5/avahi-client/srv-test.c:56: style[constVariablePointer]: Variable 'r' can be declared as pointer to const # 54| const AvahiPoll *poll_api; # 55| AvahiClient *client; # 56|-> AvahiServiceResolver *r; # 57| # 58| simple_poll = avahi_simple_poll_new(); Error: CPPCHECK_WARNING (CWE-476): [#def3] avahi-0.9.rc5/avahi-common/strlst-test.c:120: warning[nullPointerRedundantCheck]: Either the condition '!v' is redundant or there is possible null pointer dereference: v. # 118| must(!v); # 119| # 120|-> printf("<%s>=<%s>\n", t, v); # 121| avahi_free(t); # 122| avahi_free(v); Error: CPPCHECK_WARNING (CWE-398): [#def4] avahi-0.9.rc5/avahi-core/announce.c:349: style[constVariablePointer]: Variable 'a' can be declared as pointer to const # 347| # 348| int avahi_entry_first_probe_sent(AvahiServer *s, AvahiEntry *e, AvahiInterface *i) { # 349|-> AvahiAnnouncer *a; # 350| # 351| assert(s); Error: CPPCHECK_WARNING (CWE-398): [#def5] avahi-0.9.rc5/avahi-core/avahi-test.c:92: style[constParameterCallback]: Parameter 'r' can be declared as pointer to const. However it seems that 'record_browser_callback' is a callback function, if 'r' is declared with const you might also need to cast function pointer(s). # 90| # 91| static void record_browser_callback( # 92|-> AvahiSRecordBrowser *r, # 93| AvahiIfIndex interface, # 94| AvahiProtocol protocol, Error: CPPCHECK_WARNING (CWE-398): [#def6] avahi-0.9.rc5/avahi-core/cname-test.c:213: style[constParameterPointer]: Parameter 'test_case' can be declared as pointer to const # 211| avahi_test_case_function = &function; # 212| # 213|-> static void avahi_test_initialize(char *test_case) { # 214| must(test_case); # 215| Error: CPPCHECK_WARNING (CWE-475): [#def7] avahi-0.9.rc5/avahi-core/conflict-test.c:544: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. # 542| avahi_server_config_init(&config); # 543| config.host_name = avahi_strdup(HOST_NAME); # 544|-> config.allow_interfaces = avahi_string_list_new(ifname, NULL); # 545| config.publish_hinfo = publish_hinfo; # 546| config.publish_workstation = 0; Error: CPPCHECK_WARNING (CWE-398): [#def8] avahi-0.9.rc5/avahi-core/conflict-test.c:656: style[constParameterCallback]: Parameter 'g' can be declared as pointer to const. However it seems that 'group_callback' is a callback function, if 'g' is declared with const you might also need to cast function pointer(s). # 654| } # 655| # 656|-> static void group_callback(AVAHI_GCC_UNUSED AvahiServer *s, AVAHI_GCC_UNUSED AvahiSEntryGroup *g, AvahiEntryGroupState state, AVAHI_GCC_UNUSED void *userdata) { # 657| if (state != AVAHI_ENTRY_GROUP_ESTABLISHED) # 658| return; Error: CPPCHECK_WARNING (CWE-398): [#def9] avahi-0.9.rc5/avahi-core/conflict-test.c:656: style[constParameterCallback]: Parameter 's' can be declared as pointer to const. However it seems that 'group_callback' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). # 654| } # 655| # 656|-> static void group_callback(AVAHI_GCC_UNUSED AvahiServer *s, AVAHI_GCC_UNUSED AvahiSEntryGroup *g, AvahiEntryGroupState state, AVAHI_GCC_UNUSED void *userdata) { # 657| if (state != AVAHI_ENTRY_GROUP_ESTABLISHED) # 658| return; Error: CPPCHECK_WARNING (CWE-398): [#def10] avahi-0.9.rc5/avahi-core/conflict-test.c:656: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'group_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). # 654| } # 655| # 656|-> static void group_callback(AVAHI_GCC_UNUSED AvahiServer *s, AVAHI_GCC_UNUSED AvahiSEntryGroup *g, AvahiEntryGroupState state, AVAHI_GCC_UNUSED void *userdata) { # 657| if (state != AVAHI_ENTRY_GROUP_ESTABLISHED) # 658| return; Error: CPPCHECK_WARNING (CWE-570): [#def11] avahi-0.9.rc5/avahi-core/conflict-test.c:796: style[knownConditionTrueFalse]: Condition 'enter_private_netns()==0' is always false # 794| } # 795| # 796|-> if (!wanted && enter_private_netns() == 0) # 797| avahi_log_info("Running in a private network namespace."); # 798| else if (mdns_port_in_use()) { Error: CPPCHECK_WARNING (CWE-398): [#def12] avahi-0.9.rc5/avahi-core/dns-test.c:47: style[constVariablePointer]: Variable 'resp' can be declared as pointer to const # 45| size_t l; # 46| int res; # 47|-> uint8_t *resp; # 48| # 49| p = avahi_dns_packet_new(0);
| analyzer-version-clang | 23.1.0 |
| analyzer-version-clippy | 1.98.1 |
| analyzer-version-cppcheck | 2.22.0 |
| analyzer-version-gcc | 16.2.1 |
| analyzer-version-gcc-analyzer | 16.2.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clang | 23.1.0 |
| diffbase-analyzer-version-clippy | 1.98.1 |
| diffbase-analyzer-version-cppcheck | 2.22.0 |
| diffbase-analyzer-version-gcc | 16.2.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.2.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-215.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.20260813.215201.gc98a3c4.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | avahi-0.9.rc5-9.20260917080724394177.master.23.gef903fb |
| diffbase-store-results-to | /tmp/tmpf0k6f2ns/avahi-0.9.rc5-9.20260917080724394177.master.23.gef903fb.tar.xz |
| diffbase-time-created | 2026-09-21 14:35:46 |
| diffbase-time-finished | 2026-09-21 14:39:53 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '--root-override=fedora-rawhide-x86_64-0ccc4f1d-4069-4d75-950f-1d19cf979481' '-t' 'cppcheck,clippy,shellcheck,gcc,unicontrol' '-o' '/tmp/tmpf0k6f2ns/avahi-0.9.rc5-9.20260917080724394177.master.23.gef903fb.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpf0k6f2ns/avahi-0.9.rc5-9.20260917080724394177.master.23.gef903fb.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.20260914.142338.gbd0b33d-1.el9 |
| enabled-plugins | clang, clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-215.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.20260813.215201.gc98a3c4.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | avahi-0.9.rc5-9.20260921142031870670.pr983.32.g9401f59 |
| store-results-to | /tmp/tmp2omb0ypx/avahi-0.9.rc5-9.20260921142031870670.pr983.32.g9401f59.tar.xz |
| time-created | 2026-09-21 14:40:14 |
| time-finished | 2026-09-21 14:44:49 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '--root-override=fedora-rawhide-x86_64-3ecb8338-2736-4028-889d-df1b58ba7abb' '-t' 'cppcheck,clippy,shellcheck,gcc,unicontrol' '-o' '/tmp/tmp2omb0ypx/avahi-0.9.rc5-9.20260921142031870670.pr983.32.g9401f59.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmp2omb0ypx/avahi-0.9.rc5-9.20260921142031870670.pr983.32.g9401f59.src.rpm' |
| tool-version | csmock-3.8.7.20260914.142338.gbd0b33d-1.el9 |