Task #92540 - added.err
back to task #92540download
Error: CPPCHECK_WARNING (CWE-398):
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):
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):
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):
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):
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|