Newly introduced findings

List of Findings

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/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): [#def5]
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-398): [#def6]
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);

Scan Properties

analyzer-version-clang23.1.0
analyzer-version-clippy1.98.1
analyzer-version-cppcheck2.22.0
analyzer-version-gcc16.2.1
analyzer-version-gcc-analyzer16.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clang23.1.0
diffbase-analyzer-version-clippy1.98.1
diffbase-analyzer-version-cppcheck2.22.0
diffbase-analyzer-version-gcc16.2.1
diffbase-analyzer-version-gcc-analyzer16.2.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclang, clippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-166.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260813.215201.gc98a3c4.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameavahi-0.9.rc5-9.20260917080724394177.master.23.gef903fb
diffbase-store-results-to/tmp/tmpcdspzc41/avahi-0.9.rc5-9.20260917080724394177.master.23.gef903fb.tar.xz
diffbase-time-created2026-09-21 14:31:57
diffbase-time-finished2026-09-21 14:36:21
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '--root-override=fedora-rawhide-x86_64-c6353c93-9bb5-4754-b9fa-4bef476b23f8' '-t' 'cppcheck,clippy,shellcheck,gcc,unicontrol' '-o' '/tmp/tmpcdspzc41/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/tmpcdspzc41/avahi-0.9.rc5-9.20260917080724394177.master.23.gef903fb.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260914.142338.gbd0b33d-1.el9
enabled-pluginsclang, clippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-166.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260813.215201.gc98a3c4.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameavahi-0.9.rc5-9.20260921142010978109.pr985.25.g59c5613
store-results-to/tmp/tmpkne_tehq/avahi-0.9.rc5-9.20260921142010978109.pr985.25.g59c5613.tar.xz
time-created2026-09-21 14:36:47
time-finished2026-09-21 14:40:49
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '--root-override=fedora-rawhide-x86_64-af804249-4001-40cf-a924-2176668c9605' '-t' 'cppcheck,clippy,shellcheck,gcc,unicontrol' '-o' '/tmp/tmpkne_tehq/avahi-0.9.rc5-9.20260921142010978109.pr985.25.g59c5613.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpkne_tehq/avahi-0.9.rc5-9.20260921142010978109.pr985.25.g59c5613.src.rpm'
tool-versioncsmock-3.8.7.20260914.142338.gbd0b33d-1.el9