Newly introduced findings

List of Findings

Error: CPPCHECK_WARNING (CWE-398): [#def1]
avahi-0.9.rc2/avahi-core/avahi-test.c:419: style[constVariablePointer]: Variable 'entry' can be declared as pointer to const
#  417|       AvahiAddress a;
#  418|       AvahiSimplePoll *simple_poll;
#  419|->     AvahiEntry *entry;
#  420|       int error;
#  421|       char *s, t[2048];

Error: CPPCHECK_WARNING (CWE-398): [#def2]
avahi-0.9.rc2/avahi-core/avahi-test.c:449: warning[assertWithSideEffect]: Assert statement calls a function which may have desired side effects: 'snprintf'.
#  447|       }
#  448|   
#  449|->     assert(snprintf(t, sizeof(t), "_domain._udp.%s", s) < (int) sizeof(t));
#  450|       if (strcmp(server->entries->record->key->name, t) != 0) {
#  451|           avahi_log_error("Record name created by avahi_server_add_dns_server_address is invalid (was %s, expected %s)", server->entries->record->key->name, t);

Error: CPPCHECK_WARNING (CWE-398): [#def3]
avahi-0.9.rc2/avahi-core/avahi-test.c:455: warning[assertWithSideEffect]: Assert statement calls a function which may have desired side effects: 'snprintf'.
#  453|       }
#  454|   
#  455|->     assert(snprintf(t, sizeof(t), "ip-c0a83201.%s", s) < (int) sizeof(t));
#  456|       if (strcmp(server->entries->entries_next->record->key->name, t) != 0) {
#  457|           avahi_log_error("Record name created by avahi_server_add_dns_server_address is invalid (was %s, expected %s)", server->entries->entries_next->record->key->name, t);

Error: CPPCHECK_WARNING (CWE-398): [#def4]
avahi-0.9.rc2/avahi-core/avahi-test.c:492: style[constParameter]: Parameter 'argv' can be declared as const array
#  490|   }
#  491|   
#  492|-> int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) {
#  493|       int error = 0;
#  494|   

Error: CPPCHECK_WARNING (CWE-570): [#def5]
avahi-0.9.rc2/avahi-core/avahi-test.c:498: style[knownConditionTrueFalse]: Condition '(error=test_resolvers())!=0' is always false
#  496|           goto exit;
#  497|   
#  498|->     if ((error = test_resolvers()) != 0)
#  499|           goto exit;
#  500|   

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-215.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameavahi-0.9.rc2-6.20260110210512214425.master.127.g2866b54
diffbase-store-results-to/tmp/tmpvbxsug0r/avahi-0.9.rc2-6.20260110210512214425.master.127.g2866b54.tar.xz
diffbase-time-created2026-01-11 12:49:01
diffbase-time-finished2026-01-11 12:54:30
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpvbxsug0r/avahi-0.9.rc2-6.20260110210512214425.master.127.g2866b54.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '/tmp/tmpvbxsug0r/avahi-0.9.rc2-6.20260110210512214425.master.127.g2866b54.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-215.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameavahi-0.9.rc2-6.20260111123854083621.pr827.130.gcfa0456
store-results-to/tmp/tmpv_e8e_9r/avahi-0.9.rc2-6.20260111123854083621.pr827.130.gcfa0456.tar.xz
time-created2026-01-11 12:54:55
time-finished2026-01-11 12:59:03
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpv_e8e_9r/avahi-0.9.rc2-6.20260111123854083621.pr827.130.gcfa0456.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '/tmp/tmpv_e8e_9r/avahi-0.9.rc2-6.20260111123854083621.pr827.130.gcfa0456.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9