avahi-0.9.rc3-8.20260204005137549304.master.6.g1daf3f4
List of Findings
Error: SHELLCHECK_WARNING (CWE-477): [#def1]
/etc/avahi/avahi-autoipd.action:38:17: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def2]
/etc/avahi/avahi-autoipd.action:60:25: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: CPPCHECK_WARNING (CWE-398): [#def3]
avahi-0.9.rc3/avahi-autoipd/iface-linux.c:108: style[constVariablePointer]: Variable 'ifi' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def4]
avahi-0.9.rc3/avahi-autoipd/iface-linux.c:189: style[constVariablePointer]: Variable 'ucred' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def5]
avahi-0.9.rc3/avahi-autoipd/iface-linux.c:234: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-252): [#def6]
avahi-0.9.rc3/avahi-autoipd/main.c: scope_hint: In function ‘init_rand_seed’
avahi-0.9.rc3/avahi-autoipd/main.c:189:9: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
avahi-0.9.rc3/avahi-autoipd/main.c: scope_hint: In function ‘init_rand_seed’
avahi-0.9.rc3/avahi-autoipd/main.c:190:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
avahi-0.9.rc3/avahi-autoipd/main.c: scope_hint: In function ‘interface_up’
avahi-0.9.rc3/avahi-autoipd/main.c:425:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
avahi-0.9.rc3/avahi-autoipd/main.c:49: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
avahi-0.9.rc3/avahi-autoipd/main.c:447:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
Error: CPPCHECK_WARNING (CWE-398): [#def10]
avahi-0.9.rc3/avahi-autoipd/main.c:583: style[constVariablePointer]: Variable 'lim' can be declared as pointer to const
Error: GCC_ANALYZER_WARNING (CWE-775): [#def11]
avahi-0.9.rc3/avahi-autoipd/main.c: scope_hint: In function ‘fork_dispatcher’
avahi-0.9.rc3/avahi-autoipd/main.c:819:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def12]
avahi-0.9.rc3/avahi-autoipd/main.c:819:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def13]
avahi-0.9.rc3/avahi-autoipd/main.c:821:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
avahi-0.9.rc3/avahi-autoipd/main.c:821:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
avahi-0.9.rc3/avahi-autoipd/main.c:823:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def16]
avahi-0.9.rc3/avahi-autoipd/main.c:823:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
avahi-0.9.rc3/avahi-autoipd/main.c:839:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
Error: GCC_ANALYZER_WARNING (CWE-617): [#def18]
avahi-0.9.rc3/avahi-autoipd/main.c:843:13: warning[-Wanalyzer-tainted-assertion]: use of attacked-controlled value in condition for assertion
avahi-0.9.rc3/avahi-common/malloc.h:28: included_from: Included from here.
avahi-0.9.rc3/avahi-autoipd/main.c:68: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
avahi-0.9.rc3/avahi-autoipd/main.c:846:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
avahi-0.9.rc3/avahi-autoipd/main.c:850:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
avahi-0.9.rc3/avahi-autoipd/main.c:856:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
avahi-0.9.rc3/avahi-autoipd/main.c:861:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
avahi-0.9.rc3/avahi-autoipd/main.c:884:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
avahi-0.9.rc3/avahi-autoipd/main.c:884:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
avahi-0.9.rc3/avahi-autoipd/main.c:892:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
avahi-0.9.rc3/avahi-autoipd/main.c:892:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
avahi-0.9.rc3/avahi-autoipd/main.c:896:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
avahi-0.9.rc3/avahi-autoipd/main.c:896:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def29]
avahi-0.9.rc3/avahi-autoipd/main.c:898:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
avahi-0.9.rc3/avahi-autoipd/main.c:898:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
Error: CLANG_WARNING: [#def31]
avahi-0.9.rc3/avahi-autoipd/main.c:916:9: warning[core.NonNullParamChecker]: Null pointer passed to 4th parameter expecting 'nonnull'
Error: COMPILER_WARNING (CWE-252): [#def32]
avahi-0.9.rc3/avahi-autoipd/main.c: scope_hint: In function ‘drop_privs’
avahi-0.9.rc3/avahi-autoipd/main.c:967:9: warning[-Wunused-result]: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’
Error: CLANG_WARNING: [#def33]
avahi-0.9.rc3/avahi-autoipd/main.c:988:9: warning[unix.Chroot]: No call of chdir("/") immediately after chroot
Error: COMPILER_WARNING (CWE-252): [#def34]
avahi-0.9.rc3/avahi-autoipd/main.c:989:9: warning[-Wunused-result]: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def35]
avahi-0.9.rc3/avahi-autoipd/main.c: scope_hint: In function ‘main’
avahi-0.9.rc3/avahi-autoipd/main.c:1658:9: warning[-Wunused-result]: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-398): [#def36]
avahi-0.9.rc3/avahi-client/browser.c:42: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def37]
avahi-0.9.rc3/avahi-client/browser.c:42: style[constVariablePointer]: Variable 't' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def38]
avahi-0.9.rc3/avahi-client/browser.c:275: style[constVariablePointer]: Variable 'l' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def39]
avahi-0.9.rc3/avahi-client/check-nss-test.c:28: style[constParameter]: Parameter 'argv' can be declared as const array
Error: CPPCHECK_WARNING (CWE-398): [#def40]
avahi-0.9.rc3/avahi-client/client-test.c:42: style[constParameterCallback]: Parameter 'c' can be declared as pointer to const. However it seems that 'avahi_client_callback' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def41]
avahi-0.9.rc3/avahi-client/client-test.c:42: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_client_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def42]
avahi-0.9.rc3/avahi-client/client-test.c:46: style[constParameterCallback]: Parameter 'g' can be declared as pointer to const. However it seems that 'avahi_entry_group_callback' is a callback function, if 'g' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def43]
avahi-0.9.rc3/avahi-client/client-test.c:46: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_entry_group_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def44]
avahi-0.9.rc3/avahi-client/client-test.c:50: style[constParameterCallback]: Parameter 'g' can be declared as pointer to const. However it seems that 'avahi_entry_group2_callback' is a callback function, if 'g' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def45]
avahi-0.9.rc3/avahi-client/client-test.c:50: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_entry_group2_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def46]
avahi-0.9.rc3/avahi-client/client-test.c:55: style[constParameterCallback]: Parameter 'b' can be declared as pointer to const. However it seems that 'avahi_domain_browser_callback' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def47]
avahi-0.9.rc3/avahi-client/client-test.c:61: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_domain_browser_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def48]
avahi-0.9.rc3/avahi-client/client-test.c:67: style[constParameterCallback]: Parameter 'r' can be declared as pointer to const. However it seems that 'avahi_service_resolver_callback' is a callback function, if 'r' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def49]
avahi-0.9.rc3/avahi-client/client-test.c:79: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_service_resolver_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def50]
avahi-0.9.rc3/avahi-client/client-test.c:102: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_service_browser_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def51]
avahi-0.9.rc3/avahi-client/client-test.c:104: style[constVariablePointer]: Variable 'sr' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def52]
avahi-0.9.rc3/avahi-client/client-test.c:104: style[variableScope]: The scope of the variable 'sr' can be reduced.
Error: CPPCHECK_WARNING (CWE-398): [#def53]
avahi-0.9.rc3/avahi-client/client-test.c:116: style[constParameterCallback]: Parameter 'b' can be declared as pointer to const. However it seems that 'avahi_service_type_browser_callback' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def54]
avahi-0.9.rc3/avahi-client/client-test.c:123: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_service_type_browser_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def55]
avahi-0.9.rc3/avahi-client/client-test.c:136: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_address_resolver_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def56]
avahi-0.9.rc3/avahi-client/client-test.c:155: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_host_name_resolver_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def57]
avahi-0.9.rc3/avahi-client/client-test.c:158: style[constVariablePointer]: Variable 'ar' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-475): [#def58]
avahi-0.9.rc3/avahi-client/client-test.c:197: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-475): [#def59]
avahi-0.9.rc3/avahi-client/client-test.c:207: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-398): [#def60]
avahi-0.9.rc3/avahi-client/client-test.c:218: style[constVariablePointer]: Variable 'domain' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def61]
avahi-0.9.rc3/avahi-client/client-test.c:220: style[constVariablePointer]: Variable 'st' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def62]
avahi-0.9.rc3/avahi-client/client-test.c:221: style[constVariablePointer]: Variable 'hnr' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def63]
avahi-0.9.rc3/avahi-client/client-test.c:222: style[constVariablePointer]: Variable 'aar' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-476): [#def64]
avahi-0.9.rc3/avahi-client/client-test.c:243: warning[nullPointerRedundantCheck]: Either the condition 'ret' is redundant or there is possible null pointer dereference: ret.
Error: CPPCHECK_WARNING (CWE-476): [#def65]
avahi-0.9.rc3/avahi-client/client-test.c:246: warning[nullPointerRedundantCheck]: Either the condition 'ret' is redundant or there is possible null pointer dereference: ret.
Error: CPPCHECK_WARNING (CWE-476): [#def66]
avahi-0.9.rc3/avahi-client/client-test.c:249: warning[nullPointerRedundantCheck]: Either the condition 'ret' is redundant or there is possible null pointer dereference: ret.
Error: CPPCHECK_WARNING (CWE-476): [#def67]
avahi-0.9.rc3/avahi-client/client-test.c:252: warning[nullPointerRedundantCheck]: Either the condition 'ret' is redundant or there is possible null pointer dereference: ret.
Error: CPPCHECK_WARNING (CWE-475): [#def68]
avahi-0.9.rc3/avahi-client/client-test.c:264: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CLANG_WARNING: [#def69]
avahi-0.9.rc3/avahi-client/client-test.c:321:5: warning[core.NullDereference]: Access to field 'timeout_new' results in a dereference of a null pointer (loaded from variable 'poll_api')
Error: CPPCHECK_WARNING (CWE-476): [#def70]
avahi-0.9.rc3/avahi-client/client.c:144: warning[nullPointerRedundantCheck]: Either the condition '!old' is redundant or there is possible null pointer dereference: old.
Error: CPPCHECK_WARNING (CWE-563): [#def71]
avahi-0.9.rc3/avahi-client/client.c:800: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-563): [#def72]
avahi-0.9.rc3/avahi-client/entrygroup.c:55: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-563): [#def73]
avahi-0.9.rc3/avahi-client/entrygroup.c:191: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-563): [#def74]
avahi-0.9.rc3/avahi-client/entrygroup.c:299: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def75]
avahi-0.9.rc3/avahi-client/entrygroup.c:366: style[constVariablePointer]: Variable 'p' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def76]
avahi-0.9.rc3/avahi-client/entrygroup.c:397: style[unreadVariable]: Variable 'txt' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def77]
avahi-0.9.rc3/avahi-client/entrygroup.c:397: warning[uselessAssignmentPtrArg]: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
Error: CLANG_WARNING: [#def78]
avahi-0.9.rc3/avahi-client/entrygroup.c:397:5: warning[deadcode.DeadStores]: Value stored to 'txt' is never read
Error: CPPCHECK_WARNING (CWE-563): [#def79]
avahi-0.9.rc3/avahi-client/entrygroup.c:415: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def80]
avahi-0.9.rc3/avahi-client/entrygroup.c: scope_hint: In function 'avahi_entry_group_add_service'
avahi-0.9.rc3/avahi-client/entrygroup.c:515:11: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
avahi-0.9.rc3/avahi-common/malloc.h:28: included_from: Included from here.
avahi-0.9.rc3/avahi-client/entrygroup.c:34: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-563): [#def81]
avahi-0.9.rc3/avahi-client/entrygroup.c:533: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def82]
avahi-0.9.rc3/avahi-client/entrygroup.c: scope_hint: In function 'avahi_entry_group_update_service_txt'
avahi-0.9.rc3/avahi-client/entrygroup.c:626:11: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
Error: CPPCHECK_WARNING (CWE-563): [#def83]
avahi-0.9.rc3/avahi-client/entrygroup.c:644: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-563): [#def84]
avahi-0.9.rc3/avahi-client/entrygroup.c:730: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-563): [#def85]
avahi-0.9.rc3/avahi-client/entrygroup.c:821: style[unreadVariable]: Variable 'r' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def86]
avahi-0.9.rc3/avahi-client/xdg-config.c:39: style[constVariablePointer]: Variable 'p' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def87]
avahi-0.9.rc3/avahi-common/alternative.c:35: style[constParameterPointer]: Parameter 'c' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def88]
avahi-0.9.rc3/avahi-common/alternative.c:54: style[constVariablePointer]: Variable 'ret' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def89]
avahi-0.9.rc3/avahi-common/dbus-watch-glue.c:311: style[variableScope]: The scope of the variable 'd' can be reduced.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def90]
avahi-0.9.rc3/avahi-common/malloc.c: scope_hint: In function 'oom'
avahi-0.9.rc3/avahi-common/malloc.c:52:18: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
avahi-0.9.rc3/avahi-common/malloc.h:28: included_from: Included from here.
avahi-0.9.rc3/avahi-common/malloc.c:30: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def91]
avahi-0.9.rc3/avahi-common/malloc.c: scope_hint: In function ‘oom’
avahi-0.9.rc3/avahi-common/malloc.c:52:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
avahi-0.9.rc3/avahi-common/malloc.h:28: included_from: Included from here.
avahi-0.9.rc3/avahi-common/malloc.c:30: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-570): [#def92]
avahi-0.9.rc3/avahi-common/malloc.c:103: style[unsignedLessThanZero]: Checking if unsigned expression 'size' is less than zero.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def93]
avahi-0.9.rc3/avahi-common/malloc.c: scope_hint: In function 'avahi_malloc'
avahi-0.9.rc3/avahi-common/malloc.c:110:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def94]
avahi-0.9.rc3/avahi-common/malloc.c: scope_hint: In function ‘avahi_malloc’
avahi-0.9.rc3/avahi-common/malloc.c:110:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
Error: CPPCHECK_WARNING (CWE-570): [#def95]
avahi-0.9.rc3/avahi-common/malloc.c:116: style[unsignedLessThanZero]: Checking if unsigned expression 'size' is less than zero.
Error: CPPCHECK_WARNING (CWE-664): [#def96]
avahi-0.9.rc3/avahi-common/malloc.c:214: error[va_list_usedBeforeStarted]: va_list 'ap2' used before va_start() was called.
Error: CPPCHECK_WARNING (CWE-664): [#def97]
avahi-0.9.rc3/avahi-common/malloc.c:215: error[va_list_usedBeforeStarted]: va_list 'ap2' used before va_start() was called.
Error: CPPCHECK_WARNING (CWE-664): [#def98]
avahi-0.9.rc3/avahi-common/malloc.c:216: error[va_list_usedBeforeStarted]: va_list 'ap2' used before va_start() was called.
Error: CLANG_WARNING: [#def99]
avahi-0.9.rc3/avahi-common/malloc.c:227:13: warning[unix.Malloc]: Use of memory after it is freed
Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
avahi-0.9.rc3/avahi-common/malloc.h:50:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c: scope_hint: In function ‘avahi_ini_file_load’
avahi-0.9.rc3/avahi-common/llist.h:25: included_from: Included from here.
avahi-0.9.rc3/avahi-daemon/ini-file-parser.h:23: included_from: Included from here.
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c:32: included_from: Included from here.
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c:47:9: note: in expansion of macro ‘avahi_new’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
avahi-0.9.rc3/avahi-common/malloc.h:50:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c: scope_hint: In function ‘avahi_ini_file_load’
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c:47:9: note: in expansion of macro ‘avahi_new’
Error: CPPCHECK_WARNING (CWE-398): [#def102]
avahi-0.9.rc3/avahi-common/rlist.c:41: style[constParameterPointer]: Parameter 'data' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-252): [#def103]
avahi-0.9.rc3/avahi-common/simple-watch.c: scope_hint: In function 'avahi_simple_poll_wakeup'
avahi-0.9.rc3/avahi-common/simple-watch.c:101:5: warning[-Wunused-result]: ignoring return value of 'write' declared with attribute 'warn_unused_result'
Error: COMPILER_WARNING (CWE-252): [#def104]
avahi-0.9.rc3/avahi-common/simple-watch.c: scope_hint: In function ‘avahi_simple_poll_wakeup’
avahi-0.9.rc3/avahi-common/simple-watch.c:101:5: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-570): [#def105]
avahi-0.9.rc3/avahi-common/simple-watch.c:605: style[knownConditionTrueFalse]: Condition '(r=avahi_simple_poll_dispatch(s))!=0' is always false
Error: CPPCHECK_WARNING (CWE-398): [#def106]
avahi-0.9.rc3/avahi-common/simple-watch.c:641: style[variableScope]: The scope of the variable 'r' can be reduced.
Error: CPPCHECK_WARNING (CWE-475): [#def107]
avahi-0.9.rc3/avahi-common/strlst-test.c:39: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def108]
avahi-0.9.rc3/avahi-common/strlst.c: scope_hint: In function 'avahi_string_list_add_anonymous'
avahi-0.9.rc3/avahi-common/strlst.c:37:15: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
avahi-0.9.rc3/avahi-common/malloc.h:28: included_from: Included from here.
avahi-0.9.rc3/avahi-common/strlst.c:31: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def109]
avahi-0.9.rc3/avahi-common/strlst.c: scope_hint: In function ‘avahi_string_list_add_anonymous’
avahi-0.9.rc3/avahi-common/strlst.c:37:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
avahi-0.9.rc3/avahi-common/strlst.c: scope_hint: In function ‘avahi_string_list_add_anonymous’
avahi-0.9.rc3/avahi-common/malloc.h:28: included_from: Included from here.
avahi-0.9.rc3/avahi-common/strlst.c:31: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-398): [#def110]
avahi-0.9.rc3/avahi-common/strlst.c:165: style[constVariablePointer]: Variable 'p' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def111]
avahi-0.9.rc3/avahi-common/strlst.c:222: style[unreadVariable]: Variable 'l' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def112]
avahi-0.9.rc3/avahi-common/strlst.c:222: warning[uselessAssignmentPtrArg]: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
Error: CLANG_WARNING: [#def113]
avahi-0.9.rc3/avahi-common/strlst.c:222:5: warning[deadcode.DeadStores]: Value stored to 'l' is never read
Error: CPPCHECK_WARNING (CWE-398): [#def114]
avahi-0.9.rc3/avahi-common/strlst.c:233: style[constVariablePointer]: Variable 'n' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def115]
avahi-0.9.rc3/avahi-common/strlst.c:262: style[unreadVariable]: Variable 'l' is assigned a value that is never used.
Error: CLANG_WARNING: [#def116]
avahi-0.9.rc3/avahi-common/strlst.c:262:9: warning[deadcode.DeadStores]: Value stored to 'l' is never read
Error: CPPCHECK_WARNING (CWE-398): [#def117]
avahi-0.9.rc3/avahi-common/strlst.c:275: style[constVariablePointer]: Variable 'n' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def118]
avahi-0.9.rc3/avahi-common/strlst.c:336: style[variableScope]: The scope of the variable 'va' can be reduced.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def119]
avahi-0.9.rc3/avahi-common/strlst.c: scope_hint: In function 'avahi_string_list_add_vprintf'
avahi-0.9.rc3/avahi-common/strlst.c:393:15: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def120]
avahi-0.9.rc3/avahi-common/strlst.c: scope_hint: In function ‘avahi_string_list_add_vprintf’
avahi-0.9.rc3/avahi-common/strlst.c:393:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
Error: CPPCHECK_WARNING (CWE-398): [#def121]
avahi-0.9.rc3/avahi-common/strlst.c:485: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def122]
avahi-0.9.rc3/avahi-common/utf8-test.c:30: style[constParameter]: Parameter 'argv' can be declared as const array
Error: CLANG_WARNING: [#def123]
avahi-0.9.rc3/avahi-common/watch-test.c:96:5: warning[core.NullDereference]: Access to field 'timeout_new' results in a dereference of a null pointer (loaded from variable 'api')
Error: GCC_ANALYZER_WARNING (CWE-775): [#def124]
avahi-0.9.rc3/avahi-compat-howl/address.c: scope_hint: In function 'sw_ipv4_address_init_from_this_host'
avahi-0.9.rc3/avahi-compat-howl/address.c:123:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
avahi-0.9.rc3/avahi-compat-howl/address.c:24: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/address.c:35: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-libdns_sd/warn.h:32:33: note: in expansion of macro 'avahi_warn_linkage'
avahi-0.9.rc3/avahi-compat-howl/address.c:113:5: note: in expansion of macro 'AVAHI_WARN_LINKAGE'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
avahi-0.9.rc3/avahi-compat-howl/address.c: scope_hint: In function ‘sw_ipv4_address_init_from_this_host’
avahi-0.9.rc3/avahi-compat-howl/address.c:123:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
avahi-0.9.rc3/avahi-compat-howl/address.c:24: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/address.c:35: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-libdns_sd/warn.h:32:33: note: in expansion of macro ‘avahi_warn_linkage’
avahi-0.9.rc3/avahi-compat-howl/address.c:113:5: note: in expansion of macro ‘AVAHI_WARN_LINKAGE’
Error: CLANG_WARNING: [#def126]
avahi-0.9.rc3/avahi-compat-howl/compat.c:136:14: warning[unix.BlockInCriticalSection]: Call to blocking function 'read' inside of critical section
Error: COMPILER_WARNING (CWE-843): [#def127]
avahi-0.9.rc3/avahi-compat-howl/compat.c: scope_hint: In function 'client_callback'
avahi-0.9.rc3/avahi-compat-howl/compat.c:325:18: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_result (*)(void)' {aka 'int (*)(void)'} to 'sw_result (*)(struct _sw_discovery *, sw_discovery_oid, sw_discovery_browse_status, sw_uint32, const char *, const char *, const char *, void *)' {aka 'int (*)(struct _sw_discovery *, unsigned int, enum _sw_discovery_browse_status, unsigned int, const char *, const char *, const char *, void *)'}
Error: CPPCHECK_WARNING (CWE-398): [#def128]
avahi-0.9.rc3/avahi-compat-howl/compat.c:590: style[variableScope]: The scope of the variable 'ret' can be reduced.
Error: COMPILER_WARNING (CWE-843): [#def129]
avahi-0.9.rc3/avahi-compat-howl/compat.c: scope_hint: In function 'reg_report_status'
avahi-0.9.rc3/avahi-compat-howl/compat.c:636:13: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_result (*)(void)' {aka 'int (*)(void)'} to 'sw_result (*)(struct _sw_discovery *, sw_discovery_oid, sw_discovery_publish_status, void *)' {aka 'int (*)(struct _sw_discovery *, unsigned int, enum _sw_discovery_publish_status, void *)'}
Error: CPPCHECK_WARNING (CWE-563): [#def130]
avahi-0.9.rc3/avahi-compat-howl/compat.c:703: style[unreadVariable]: Variable 'ret' is assigned a value that is never used.
Error: CLANG_WARNING: [#def131]
avahi-0.9.rc3/avahi-compat-howl/compat.c:703:18: warning[deadcode.DeadStores]: Although the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret'
Error: COMPILER_WARNING (CWE-843): [#def132]
avahi-0.9.rc3/avahi-compat-howl/compat.c: scope_hint: In function 'sw_discovery_publish'
avahi-0.9.rc3/avahi-compat-howl/compat.c:798:19: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_discovery_publish_reply' {aka 'int (*)(struct _sw_discovery *, unsigned int, enum _sw_discovery_publish_status, void *)'} to 'sw_result (*)(void)' {aka 'int (*)(void)'}
Error: CPPCHECK_WARNING (CWE-563): [#def133]
avahi-0.9.rc3/avahi-compat-howl/compat.c:828: style[redundantInitialization]: Redundant initialization for 'result'. The initialized value is overwritten before it is read.
Error: COMPILER_WARNING (CWE-843): [#def134]
avahi-0.9.rc3/avahi-compat-howl/compat.c: scope_hint: In function 'domain_browser_callback'
avahi-0.9.rc3/avahi-compat-howl/compat.c:857:13: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_result (*)(void)' {aka 'int (*)(void)'} to 'sw_result (*)(struct _sw_discovery *, sw_discovery_oid, sw_discovery_browse_status, sw_uint32, const char *, const char *, const char *, void *)' {aka 'int (*)(struct _sw_discovery *, unsigned int, enum _sw_discovery_browse_status, unsigned int, const char *, const char *, const char *, void *)'}
Error: COMPILER_WARNING (CWE-843): [#def135]
avahi-0.9.rc3/avahi-compat-howl/compat.c: scope_hint: In function 'sw_discovery_browse_domains'
avahi-0.9.rc3/avahi-compat-howl/compat.c:902:19: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_discovery_browse_reply' {aka 'int (*)(struct _sw_discovery *, unsigned int, enum _sw_discovery_browse_status, unsigned int, const char *, const char *, const char *, void *)'} to 'sw_result (*)(void)' {aka 'int (*)(void)'}
Error: CPPCHECK_WARNING (CWE-563): [#def136]
avahi-0.9.rc3/avahi-compat-howl/compat.c:914: style[redundantInitialization]: Redundant initialization for 'result'. The initialized value is overwritten before it is read.
Error: COMPILER_WARNING (CWE-843): [#def137]
avahi-0.9.rc3/avahi-compat-howl/compat.c: scope_hint: In function 'service_resolver_callback'
avahi-0.9.rc3/avahi-compat-howl/compat.c:948:13: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_result (*)(void)' {aka 'int (*)(void)'} to 'sw_result (*)(struct _sw_discovery *, sw_discovery_oid, sw_uint32, const char *, const char *, const char *, sw_ipv4_address, sw_port, sw_uint8 *, sw_uint32, void *)' {aka 'int (*)(struct _sw_discovery *, unsigned int, unsigned int, const char *, const char *, const char *, struct _sw_ipv4_address, short unsigned int, unsigned char *, unsigned int, void *)'}
Error: CPPCHECK_WARNING (CWE-563): [#def138]
avahi-0.9.rc3/avahi-compat-howl/compat.c:960: style[unreadVariable]: Variable 'host_name' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def139]
avahi-0.9.rc3/avahi-compat-howl/compat.c:960: warning[uselessAssignmentPtrArg]: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
Error: CLANG_WARNING: [#def140]
avahi-0.9.rc3/avahi-compat-howl/compat.c:960:13: warning[deadcode.DeadStores]: Value stored to 'host_name' is never read
Error: COMPILER_WARNING (CWE-843): [#def141]
avahi-0.9.rc3/avahi-compat-howl/compat.c: scope_hint: In function 'sw_discovery_resolve'
avahi-0.9.rc3/avahi-compat-howl/compat.c:1011:19: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_discovery_resolve_reply' {aka 'int (*)(struct _sw_discovery *, unsigned int, unsigned int, const char *, const char *, const char *, struct _sw_ipv4_address, short unsigned int, unsigned char *, unsigned int, void *)'} to 'sw_result (*)(void)' {aka 'int (*)(void)'}
Error: CPPCHECK_WARNING (CWE-563): [#def142]
avahi-0.9.rc3/avahi-compat-howl/compat.c:1023: style[redundantInitialization]: Redundant initialization for 'result'. The initialized value is overwritten before it is read.
Error: COMPILER_WARNING (CWE-843): [#def143]
avahi-0.9.rc3/avahi-compat-howl/compat.c: scope_hint: In function 'service_browser_callback'
avahi-0.9.rc3/avahi-compat-howl/compat.c:1054:13: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_result (*)(void)' {aka 'int (*)(void)'} to 'sw_result (*)(struct _sw_discovery *, sw_discovery_oid, sw_discovery_browse_status, sw_uint32, const char *, const char *, const char *, void *)' {aka 'int (*)(struct _sw_discovery *, unsigned int, enum _sw_discovery_browse_status, unsigned int, const char *, const char *, const char *, void *)'}
Error: COMPILER_WARNING (CWE-843): [#def144]
avahi-0.9.rc3/avahi-compat-howl/compat.c: scope_hint: In function 'sw_discovery_browse'
avahi-0.9.rc3/avahi-compat-howl/compat.c:1103:19: warning[-Wcast-function-type]: cast between incompatible function types from 'sw_discovery_browse_reply' {aka 'int (*)(struct _sw_discovery *, unsigned int, enum _sw_discovery_browse_status, unsigned int, const char *, const char *, const char *, void *)'} to 'sw_result (*)(void)' {aka 'int (*)(void)'}
Error: CPPCHECK_WARNING (CWE-563): [#def145]
avahi-0.9.rc3/avahi-compat-howl/compat.c:1115: style[redundantInitialization]: Redundant initialization for 'result'. The initialized value is overwritten before it is read.
Error: COMPILER_WARNING: [#def146]
avahi-0.9.rc3/avahi-compat-howl/include/salt/salt.h:32: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/include/howl.h:32: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/unsupported.c:26: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/include/salt/platform.h:411:1: warning[-Wstrict-prototypes]: function declaration isn't a prototype
Error: COMPILER_WARNING: [#def147]
avahi-0.9.rc3/avahi-compat-howl/include/salt/salt.h:32: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/include/howl.h:32: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/browse-domain-test.c:28: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/include/salt/platform.h:411:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
Error: COMPILER_WARNING (CWE-563): [#def148]
avahi-0.9.rc3/avahi-compat-howl/samples/browse.c:46:73: warning[-Wunused-parameter]: unused parameter ‘extra’
Error: CPPCHECK_WARNING (CWE-563): [#def149]
avahi-0.9.rc3/avahi-compat-howl/samples/browse.c:51: style[unusedVariable]: Unused variable: sval
Error: COMPILER_WARNING (CWE-563): [#def150]
avahi-0.9.rc3/avahi-compat-howl/samples/browse.c:51:81: warning[-Wunused-variable]: unused variable ‘sval’
Error: COMPILER_WARNING (CWE-681): [#def151]
avahi-0.9.rc3/avahi-compat-howl/samples/browse.c: scope_hint: In function ‘my_resolver’
avahi-0.9.rc3/avahi-compat-howl/samples/browse.c:58:132: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘sw_ipv4_address_name’ differ in signedness
avahi-0.9.rc3/avahi-compat-howl/include/corby/orb.h:33: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/include/howl.h:35: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/include/salt/address.h:104:65: note: expected ‘sw_string’ {aka ‘char *’} but argument is of type ‘sw_int8 *’ {aka ‘signed char *’}
Error: COMPILER_WARNING (CWE-681): [#def152]
avahi-0.9.rc3/avahi-compat-howl/samples/browse.c:65:57: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘sw_text_record_iterator_next’ differ in signedness
avahi-0.9.rc3/avahi-compat-howl/include/howl.h:41: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/include/discovery/text_record.h:112:97: note: expected ‘char *’ but argument is of type ‘sw_int8 *’ {aka ‘signed char *’}
Error: COMPILER_WARNING (CWE-563): [#def153]
avahi-0.9.rc3/avahi-compat-howl/samples/browse.c: scope_hint: In function ‘my_browser’
avahi-0.9.rc3/avahi-compat-howl/samples/browse.c:83:89: warning[-Wunused-parameter]: unused parameter ‘oid’
Error: COMPILER_WARNING (CWE-563): [#def154]
avahi-0.9.rc3/avahi-compat-howl/samples/browse.c:89:97: warning[-Wunused-parameter]: unused parameter ‘extra’
Error: COMPILER_WARNING (CWE-563): [#def155]
avahi-0.9.rc3/avahi-compat-howl/samples/publish.c:35:89: warning[-Wunused-parameter]: unused parameter ‘discovery’
Error: COMPILER_WARNING (CWE-563): [#def156]
avahi-0.9.rc3/avahi-compat-howl/samples/publish.c:36:89: warning[-Wunused-parameter]: unused parameter ‘oid’
Error: COMPILER_WARNING (CWE-563): [#def157]
avahi-0.9.rc3/avahi-compat-howl/samples/publish.c:38:97: warning[-Wunused-parameter]: unused parameter ‘extra’
Error: COMPILER_WARNING (CWE-704): [#def158]
avahi-0.9.rc3/avahi-compat-howl/samples/publish.c: scope_hint: In function ‘my_service_reply’
avahi-0.9.rc3/avahi-compat-howl/samples/publish.c:43:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def159]
avahi-0.9.rc3/avahi-compat-howl/samples/publish.c:44:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def160]
avahi-0.9.rc3/avahi-compat-howl/samples/publish.c:45:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def161]
avahi-0.9.rc3/avahi-compat-howl/samples/publish.c:46:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-563): [#def162]
avahi-0.9.rc3/avahi-compat-howl/samples/query.c:36:105: warning[-Wunused-parameter]: unused parameter ‘session’
Error: COMPILER_WARNING (CWE-563): [#def163]
avahi-0.9.rc3/avahi-compat-howl/samples/query.c:37:105: warning[-Wunused-parameter]: unused parameter ‘oid’
Error: COMPILER_WARNING (CWE-563): [#def164]
avahi-0.9.rc3/avahi-compat-howl/samples/query.c:38:81: warning[-Wunused-parameter]: unused parameter ‘status’
Error: COMPILER_WARNING (CWE-563): [#def165]
avahi-0.9.rc3/avahi-compat-howl/samples/query.c:43:113: warning[-Wunused-parameter]: unused parameter ‘rrdatalen’
Error: COMPILER_WARNING (CWE-563): [#def166]
avahi-0.9.rc3/avahi-compat-howl/samples/query.c:45:113: warning[-Wunused-parameter]: unused parameter ‘ttl’
Error: COMPILER_WARNING (CWE-563): [#def167]
avahi-0.9.rc3/avahi-compat-howl/samples/query.c:46:113: warning[-Wunused-parameter]: unused parameter ‘extra’
Error: CPPCHECK_WARNING (CWE-563): [#def168]
avahi-0.9.rc3/avahi-compat-howl/samples/query.c:48: style[unusedVariable]: Unused variable: address
Error: COMPILER_WARNING (CWE-563): [#def169]
avahi-0.9.rc3/avahi-compat-howl/samples/query.c:48:25: warning[-Wunused-variable]: unused variable ‘address’
Error: CPPCHECK_WARNING (CWE-398): [#def170]
avahi-0.9.rc3/avahi-compat-howl/samples/query.c:54: style[shadowVariable]: Local variable 'address' shadows outer variable
Error: COMPILER_WARNING (CWE-694): [#def171]
avahi-0.9.rc3/avahi-compat-howl/samples/query.c: scope_hint: In function ‘query_record_reply’
avahi-0.9.rc3/avahi-compat-howl/samples/query.c:54:33: warning[-Wshadow]: declaration of ‘address’ shadows a previous local
avahi-0.9.rc3/avahi-compat-howl/samples/query.c:48:25: note: shadowed declaration is here
Error: COMPILER_WARNING (CWE-681): [#def172]
avahi-0.9.rc3/avahi-compat-howl/samples/query.c:59:82: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘sw_ipv4_address_name’ differ in signedness
avahi-0.9.rc3/avahi-compat-howl/include/corby/orb.h:33: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/include/howl.h:35: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/include/salt/address.h:104:65: note: expected ‘sw_string’ {aka ‘char *’} but argument is of type ‘sw_int8 *’ {aka ‘signed char *’}
Error: COMPILER_WARNING (CWE-563): [#def173]
avahi-0.9.rc3/avahi-compat-howl/samples/resolve.c:46:73: warning[-Wunused-parameter]: unused parameter ‘extra’
Error: CPPCHECK_WARNING (CWE-563): [#def174]
avahi-0.9.rc3/avahi-compat-howl/samples/resolve.c:51: style[unusedVariable]: Unused variable: sval
Error: COMPILER_WARNING (CWE-563): [#def175]
avahi-0.9.rc3/avahi-compat-howl/samples/resolve.c:51:81: warning[-Wunused-variable]: unused variable ‘sval’
Error: COMPILER_WARNING (CWE-681): [#def176]
avahi-0.9.rc3/avahi-compat-howl/samples/resolve.c: scope_hint: In function ‘my_resolver’
avahi-0.9.rc3/avahi-compat-howl/samples/resolve.c:58:132: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘sw_ipv4_address_name’ differ in signedness
avahi-0.9.rc3/avahi-compat-howl/include/corby/orb.h:33: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/include/howl.h:35: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/include/salt/address.h:104:65: note: expected ‘sw_string’ {aka ‘char *’} but argument is of type ‘sw_int8 *’ {aka ‘signed char *’}
Error: COMPILER_WARNING (CWE-681): [#def177]
avahi-0.9.rc3/avahi-compat-howl/samples/resolve.c:65:57: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘sw_text_record_iterator_next’ differ in signedness
avahi-0.9.rc3/avahi-compat-howl/include/howl.h:41: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-howl/include/discovery/text_record.h:112:97: note: expected ‘char *’ but argument is of type ‘sw_int8 *’ {aka ‘signed char *’}
Error: COMPILER_WARNING: [#def178]
avahi-0.9.rc3/avahi-compat-howl/unsupported.c: scope_hint: In function 'sw_strerror'
avahi-0.9.rc3/avahi-compat-howl/unsupported.c:62:17: warning[-Wold-style-definition]: old-style function definition
Error: COMPILER_WARNING: [#def179]
avahi-0.9.rc3/avahi-compat-howl/unsupported.c: scope_hint: At top level
avahi-0.9.rc3/avahi-compat-howl/unsupported.c:62:17: warning[-Wstrict-prototypes]: function declaration isn't a prototype
Error: CLANG_WARNING: [#def180]
avahi-0.9.rc3/avahi-compat-libdns_sd/compat.c:269:14: warning[unix.BlockInCriticalSection]: Call to blocking function 'read' inside of critical section
Error: COMPILER_WARNING: [#def181]
avahi-0.9.rc3/avahi-compat-libdns_sd/compat.c:47: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-libdns_sd/compat.c: scope_hint: In function 'DNSServiceBrowse'
avahi-0.9.rc3/avahi-compat-libdns_sd/warn.h:33:82: warning[-Wpedantic]: ISO C does not support '__FUNCTION__' predefined identifier
avahi-0.9.rc3/avahi-compat-libdns_sd/compat.c:622:9: note: in expansion of macro 'AVAHI_WARN_UNSUPPORTED'
Error: COMPILER_WARNING: [#def182]
avahi-0.9.rc3/avahi-compat-libdns_sd/compat.c:47: included_from: Included from here.
avahi-0.9.rc3/avahi-compat-libdns_sd/compat.c: scope_hint: In function ‘DNSServiceBrowse’
avahi-0.9.rc3/avahi-compat-libdns_sd/warn.h:33:82: warning[-Wpedantic]: ISO C does not support ‘__FUNCTION__’ predefined identifier
avahi-0.9.rc3/avahi-compat-libdns_sd/compat.c:622:9: note: in expansion of macro ‘AVAHI_WARN_UNSUPPORTED’
Error: CPPCHECK_WARNING (CWE-398): [#def183]
avahi-0.9.rc3/avahi-core/announce.c:313: style[constVariablePointer]: Variable 'a' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def184]
avahi-0.9.rc3/avahi-core/announce.c:330: style[constVariablePointer]: Variable 'a' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def185]
avahi-0.9.rc3/avahi-core/announce.c:447: style[duplicateConditionalAssign]: Assignment 'a->state=AVAHI_WAITING' is redundant with condition 'a->state==AVAHI_WAITING'.
Error: CPPCHECK_WARNING (CWE-398): [#def186]
avahi-0.9.rc3/avahi-core/avahi-test.c:56: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'dump_line' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def187]
avahi-0.9.rc3/avahi-core/avahi-test.c:95: style[constParameterCallback]: Parameter 'record' can be declared as pointer to const. However it seems that 'record_browser_callback' is a callback function, if 'record' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def188]
avahi-0.9.rc3/avahi-core/avahi-test.c:98: style[variableScope]: The scope of the variable 't' can be reduced.
Error: CPPCHECK_WARNING (CWE-475): [#def189]
avahi-0.9.rc3/avahi-core/avahi-test.c:169: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-475): [#def190]
avahi-0.9.rc3/avahi-core/avahi-test.c:174: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-475): [#def191]
avahi-0.9.rc3/avahi-core/avahi-test.c:179: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-398): [#def192]
avahi-0.9.rc3/avahi-core/avahi-test.c:243: style[constParameterCallback]: Parameter 'b' can be declared as pointer to const. However it seems that 'db_callback' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def193]
avahi-0.9.rc3/avahi-core/avahi-test.c:249: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'db_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def194]
avahi-0.9.rc3/avahi-core/avahi-test.c:255: style[constParameterCallback]: Parameter 'b' can be declared as pointer to const. However it seems that 'stb_callback' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def195]
avahi-0.9.rc3/avahi-core/avahi-test.c:262: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'stb_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def196]
avahi-0.9.rc3/avahi-core/avahi-test.c:268: style[constParameterCallback]: Parameter 'b' can be declared as pointer to const. However it seems that 'sb_callback' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def197]
avahi-0.9.rc3/avahi-core/avahi-test.c:276: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'sb_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def198]
avahi-0.9.rc3/avahi-core/browse-domain.c:88: style[constVariablePointer]: Variable 'l' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def199]
avahi-0.9.rc3/avahi-core/browse.c:163: style[constParameterPointer]: Parameter 'key' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-683): [#def200]
avahi-0.9.rc3/avahi-core/cache.c:114: warning[funcArgOrderDifferent]: Function 'avahi_cache_walk' argument order different: declaration 'c, pattern, , userdata, , ' definition 'c, pattern, c, pattern, e, userdata'
Error: CPPCHECK_WARNING (CWE-398): [#def201]
avahi-0.9.rc3/avahi-core/cache.c:122: style[shadowArgument]: Local variable 'e' shadows outer argument
Error: CPPCHECK_WARNING (CWE-398): [#def202]
avahi-0.9.rc3/avahi-core/cache.c:133: style[shadowArgument]: Local variable 'e' shadows outer argument
Error: CPPCHECK_WARNING (CWE-398): [#def203]
avahi-0.9.rc3/avahi-core/cache.c:146: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'lookup_record_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CLANG_WARNING: [#def204]
avahi-0.9.rc3/avahi-core/cname-test.c:247:13: warning[core.NullDereference]: Access to field 'monitor' results in a dereference of a null pointer (loaded from variable 'server')
Error: CPPCHECK_WARNING (CWE-398): [#def205]
avahi-0.9.rc3/avahi-core/conformance-test.c:50: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'dump_line' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-475): [#def206]
avahi-0.9.rc3/avahi-core/conformance-test.c:79: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: GCC_ANALYZER_WARNING (CWE-479): [#def207]
avahi-0.9.rc3/avahi-core/dns-spin-test.c: scope_hint: In function ‘fail’
avahi-0.9.rc3/avahi-core/dns-spin-test.c:76:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
avahi-0.9.rc3/avahi-core/dns-spin-test.c:76:5: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
Error: CPPCHECK_WARNING (CWE-398): [#def208]
avahi-0.9.rc3/avahi-core/dns-test.c:50: warning[assignmentInAssert]: Assert statement modifies 'a'.
Error: CPPCHECK_WARNING (CWE-398): [#def209]
avahi-0.9.rc3/avahi-core/dns-test.c:51: warning[assignmentInAssert]: Assert statement modifies 'b'.
Error: CPPCHECK_WARNING (CWE-398): [#def210]
avahi-0.9.rc3/avahi-core/dns-test.c:52: warning[assignmentInAssert]: Assert statement modifies 'c'.
Error: CPPCHECK_WARNING (CWE-398): [#def211]
avahi-0.9.rc3/avahi-core/dns-test.c:53: warning[assignmentInAssert]: Assert statement modifies 'd'.
Error: CPPCHECK_WARNING (CWE-398): [#def212]
avahi-0.9.rc3/avahi-core/dns-test.c:84: warning[assignmentInAssert]: Assert statement modifies 'l'.
Error: COMPILER_WARNING (CWE-569): [#def213]
avahi-0.9.rc3/avahi-core/dns-test.c: scope_hint: In function ‘main’
avahi-0.9.rc3/avahi-core/dns-test.c:104:5: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: CPPCHECK_WARNING (CWE-570): [#def214]
avahi-0.9.rc3/avahi-core/dns.c:43: style[unsignedLessThanZero]: Checking if unsigned expression 'mtu' is less than zero.
Error: CPPCHECK_WARNING (CWE-398): [#def215]
avahi-0.9.rc3/avahi-core/dns.c:156: style[constParameterCallback]: Parameter 'key' can be declared as pointer to const. However it seems that 'name_table_cleanup' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def216]
avahi-0.9.rc3/avahi-core/dns.c:179: style[constVariablePointer]: Variable 'prev' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def217]
avahi-0.9.rc3/avahi-core/dns.c:363: style[unreadVariable]: Variable 'idx' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def218]
avahi-0.9.rc3/avahi-core/dns.c:433: style[constVariablePointer]: Variable 'd' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def219]
avahi-0.9.rc3/avahi-core/dns.c:449: style[constVariablePointer]: Variable 'd' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def220]
avahi-0.9.rc3/avahi-core/dns.c:785: style[constVariablePointer]: Variable 'start' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def221]
avahi-0.9.rc3/avahi-core/entry.c:152: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def222]
avahi-0.9.rc3/avahi-core/entry.c:348: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def223]
avahi-0.9.rc3/avahi-core/entry.c:421: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def224]
avahi-0.9.rc3/avahi-core/entry.c:425: style[unreadVariable]: Variable 'e' is assigned a value that is never used.
Error: CLANG_WARNING: [#def225]
avahi-0.9.rc3/avahi-core/entry.c:425:11: warning[deadcode.DeadStores]: Although the value stored to 'e' is used in the enclosing expression, the value is never actually read from 'e'
Error: CPPCHECK_WARNING (CWE-398): [#def226]
avahi-0.9.rc3/avahi-core/entry.c:700: style[constParameterPointer]: Parameter 'strlst' can be declared as pointer to const
Error: GCC_ANALYZER_WARNING (CWE-404): [#def227]
avahi-0.9.rc3/avahi-core/entry.c: scope_hint: In function 'avahi_server_add_service'
avahi-0.9.rc3/avahi-core/entry.c:726:11: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
Error: CPPCHECK_WARNING (CWE-398): [#def228]
avahi-0.9.rc3/avahi-core/entry.c:745: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def229]
avahi-0.9.rc3/avahi-core/entry.c:798: style[constParameterPointer]: Parameter 'strlst' can be declared as pointer to const
Error: GCC_ANALYZER_WARNING (CWE-404): [#def230]
avahi-0.9.rc3/avahi-core/entry.c: scope_hint: In function 'avahi_server_update_service_txt'
avahi-0.9.rc3/avahi-core/entry.c:819:11: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
Error: COMPILER_WARNING: [#def231]
avahi-0.9.rc3/avahi-core/entry.c: scope_hint: In function 'server_add_dns_server_name'
avahi-0.9.rc3/avahi-core/entry.c:931:32: warning[-Wformat-truncation=]: '%s' directive output may be truncated writing up to 1013 bytes into a region of size between 997 and 1001
/usr/include/bits/stdio2.h:68:10: note: '__snprintf_chk' output between 14 and 1031 bytes into a destination of size 1014
Error: CPPCHECK_WARNING (CWE-398): [#def232]
avahi-0.9.rc3/avahi-core/entry.c:962: style[constVariablePointer]: Variable 's_entry' can be declared as pointer to const
Error: COMPILER_WARNING: [#def233]
avahi-0.9.rc3/avahi-core/entry.c: scope_hint: In function 'avahi_server_add_dns_server_address'
avahi-0.9.rc3/avahi-core/entry.c:982:36: warning[-Wformat-truncation=]: '%s' directive output may be truncated writing up to 63 bytes into a region of size 61
/usr/include/bits/stdio2.h:68:10: note: '__snprintf_chk' output 5 or more bytes (assuming 68) into a destination of size 64
Error: COMPILER_WARNING: [#def234]
avahi-0.9.rc3/avahi-core/entry.c: scope_hint: In function 'avahi_server_add_dns_server_address'
avahi-0.9.rc3/avahi-core/entry.c:987:37: warning[-Wformat-truncation=]: '%s' directive output may be truncated writing up to 63 bytes into a region of size 60
/usr/include/bits/stdio2.h:68:10: note: '__snprintf_chk' output 6 or more bytes (assuming 69) into a destination of size 64
Error: CPPCHECK_WARNING (CWE-563): [#def235]
avahi-0.9.rc3/avahi-core/entry.c:1001: style[unreadVariable]: Variable 's_entry' is assigned a value that is never used.
Error: CLANG_WARNING: [#def236]
avahi-0.9.rc3/avahi-core/entry.c:1001:11: warning[deadcode.DeadStores]: Although the value stored to 's_entry' is used in the enclosing expression, the value is never actually read from 's_entry'
Error: CPPCHECK_WARNING (CWE-398): [#def237]
avahi-0.9.rc3/avahi-core/entry.c:1224: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def238]
avahi-0.9.rc3/avahi-core/hashmap.c:115: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CLANG_WARNING: [#def239]
avahi-0.9.rc3/avahi-core/hashmap.c:131:10: warning[deadcode.DeadStores]: Although the value stored to 'e' is used in the enclosing expression, the value is never actually read from 'e'
Error: CPPCHECK_WARNING (CWE-398): [#def240]
avahi-0.9.rc3/avahi-core/iface-linux.c:66: style[constParameterCallback]: Parameter 'nl' can be declared as pointer to const. However it seems that 'netlink_callback' is a callback function, if 'nl' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def241]
avahi-0.9.rc3/avahi-core/iface-linux.c:162: style[constVariablePointer]: Variable 'ifinfomsg' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def242]
avahi-0.9.rc3/avahi-core/iface-linux.c:184: style[constVariablePointer]: Variable 'r' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def243]
avahi-0.9.rc3/avahi-core/iface-linux.c:338: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: COMPILER_WARNING: [#def244]
avahi-0.9.rc3/avahi-core/iface.c: scope_hint: In function 'avahi_hw_interface_update_rrs'
avahi-0.9.rc3/avahi-core/iface.c:143:45: warning[-Wformat-truncation=]: ' [' directive output may be truncated writing 2 bytes into a region of size between 1 and 64
/usr/include/bits/stdio2.h:68:10: note: '__snprintf_chk' output between 4 and 322 bytes into a destination of size 64
Error: CPPCHECK_WARNING (CWE-475): [#def245]
avahi-0.9.rc3/avahi-core/iface.c:145: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-398): [#def246]
avahi-0.9.rc3/avahi-core/iface.c:190: style[constVariablePointer]: Variable 'a' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def247]
avahi-0.9.rc3/avahi-core/iface.c:232: style[constVariablePointer]: Variable 'found' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def248]
avahi-0.9.rc3/avahi-core/netlink.c:50: style[constVariablePointer]: Variable 'cred' can be declared as pointer to const
Error: CLANG_WARNING: [#def249]
avahi-0.9.rc3/avahi-core/probe-sched.c:376:10: warning[deadcode.DeadStores]: Although the value stored to 'pj' is used in the enclosing expression, the value is never actually read from 'pj'
Error: CPPCHECK_WARNING (CWE-398): [#def250]
avahi-0.9.rc3/avahi-core/querier-test.c:66: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'sb_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CLANG_WARNING: [#def251]
avahi-0.9.rc3/avahi-core/querier-test.c:109:5: warning[core.NullDereference]: Access to field 'timeout_new' results in a dereference of a null pointer (loaded from variable 'poll_api')
Error: CPPCHECK_WARNING (CWE-398): [#def252]
avahi-0.9.rc3/avahi-core/querier.c:146: style[constParameterPointer]: Parameter 'key' can be declared as pointer to const
Error: CLANG_WARNING: [#def253]
avahi-0.9.rc3/avahi-core/query-sched.c:361:10: warning[deadcode.DeadStores]: Although the value stored to 'qj' is used in the enclosing expression, the value is never actually read from 'qj'
Error: CPPCHECK_WARNING (CWE-570): [#def254]
avahi-0.9.rc3/avahi-core/rr.c:550: style[knownConditionTrueFalse]: Condition 'al==c' is always false
Error: CPPCHECK_WARNING (CWE-398): [#def255]
avahi-0.9.rc3/avahi-core/rr.c:706: style[constVariablePointer]: Variable 'strlst' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-570): [#def256]
avahi-0.9.rc3/avahi-core/rr.c:710: style[unsignedLessThanZero]: Checking if unsigned expression 'strlst->size' is less than zero.
Error: CPPCHECK_WARNING (CWE-398): [#def257]
avahi-0.9.rc3/avahi-core/server.c:516: style[constVariablePointer]: Variable 'r' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def258]
avahi-0.9.rc3/avahi-core/server.c:679: style[constVariablePointer]: Variable 'l' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-570): [#def259]
avahi-0.9.rc3/avahi-core/server.c:949: style[unsignedLessThanZero]: Checking if unsigned expression 'port' is less than zero.
Error: CPPCHECK_WARNING (CWE-398): [#def260]
avahi-0.9.rc3/avahi-core/server.c:1373: style[constVariablePointer]: Variable 'l' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def261]
avahi-0.9.rc3/avahi-core/server.c:1817: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def262]
avahi-0.9.rc3/avahi-core/server.c:1838: style[constVariablePointer]: Variable 'e' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def263]
avahi-0.9.rc3/avahi-core/server.c:1873: style[constVariablePointer]: Variable 'l' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def264]
avahi-0.9.rc3/avahi-core/socket.c:226: style[unusedVariable]: Unused variable: yes
Error: CPPCHECK_WARNING (CWE-563): [#def265]
avahi-0.9.rc3/avahi-core/socket.c:272: style[unusedVariable]: Unused variable: yes
Error: CPPCHECK_WARNING (CWE-570): [#def266]
avahi-0.9.rc3/avahi-core/socket.c:351: style[knownConditionTrueFalse]: Condition 'ipv4_pktinfo(fd)<0' is always false
Error: CPPCHECK_WARNING (CWE-570): [#def267]
avahi-0.9.rc3/avahi-core/socket.c:421: style[knownConditionTrueFalse]: Condition 'ipv6_pktinfo(fd)<0' is always false
Error: GCC_ANALYZER_WARNING (CWE-131): [#def268]
avahi-0.9.rc3/avahi-core/socket.c: scope_hint: In function 'sendmsg_loop'
avahi-0.9.rc3/avahi-core/socket.c:458:38: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
avahi-0.9.rc3/avahi-core/socket.c:35: included_from: Included from here.
avahi-0.9.rc3/avahi-core/socket.c:25: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-398): [#def269]
avahi-0.9.rc3/avahi-core/socket.c:586: style[variableScope]: The scope of the variable 'cmsg' can be reduced.
Error: CPPCHECK_WARNING (CWE-398): [#def270]
avahi-0.9.rc3/avahi-core/socket.c:890: style[constVariablePointer]: Variable 'i' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-570): [#def271]
avahi-0.9.rc3/avahi-core/socket.c:938: style[knownConditionTrueFalse]: Condition 'ipv4_pktinfo(fd)<0' is always false
Error: CPPCHECK_WARNING (CWE-570): [#def272]
avahi-0.9.rc3/avahi-core/socket.c:984: style[knownConditionTrueFalse]: Condition 'ipv6_pktinfo(fd)<0' is always false
Error: CPPCHECK_WARNING (CWE-475): [#def273]
avahi-0.9.rc3/avahi-core/update-test.c:51: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-475): [#def274]
avahi-0.9.rc3/avahi-core/update-test.c:64: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-570): [#def275]
avahi-0.9.rc3/avahi-core/util.c:76: style[unsignedLessThanZero]: Checking if unsigned expression 'size' is less than zero.
Error: CPPCHECK_WARNING (CWE-570): [#def276]
avahi-0.9.rc3/avahi-core/wide-area.c:147: style[unsignedLessThanZero]: Checking if unsigned expression 'e->n_dns_servers' is less than zero.
Error: CPPCHECK_WARNING (CWE-476): [#def277]
avahi-0.9.rc3/avahi-core/wide-area.c:501: warning[nullPointerRedundantCheck]: Either the condition 'c=find_record_in_cache(e,r)' is redundant or there is possible null pointer dereference: c.
Error: CPPCHECK_WARNING (CWE-476): [#def278]
avahi-0.9.rc3/avahi-core/wide-area.c:504: warning[nullPointerRedundantCheck]: Either the condition 'c=find_record_in_cache(e,r)' is redundant or there is possible null pointer dereference: c.
Error: CPPCHECK_WARNING (CWE-476): [#def279]
avahi-0.9.rc3/avahi-core/wide-area.c:507: warning[nullPointerRedundantCheck]: Either the condition 'c=find_record_in_cache(e,r)' is redundant or there is possible null pointer dereference: c.
Error: CPPCHECK_WARNING (CWE-398): [#def280]
avahi-0.9.rc3/avahi-core/wide-area.c:706: style[constVariablePointer]: Variable 'c' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def281]
avahi-0.9.rc3/avahi-daemon/chroot.c:108: style[unusedStructMember]: union member 'Anonymous1::buf' is never used.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def282]
avahi-0.9.rc3/avahi-daemon/chroot.c: scope_hint: In function ‘send_fd’
avahi-0.9.rc3/avahi-daemon/chroot.c:134:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(get_file_name_table[<unknown>], 0)’
avahi-0.9.rc3/avahi-daemon/chroot.c:33: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-571): [#def283]
avahi-0.9.rc3/avahi-daemon/chroot.c:405: style[knownConditionTrueFalse]: Condition 'r<0' is always true
Error: CPPCHECK_WARNING (CWE-398): [#def284]
avahi-0.9.rc3/avahi-daemon/dbus-util.c:301: style[constVariablePointer]: Variable 'p' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def285]
avahi-0.9.rc3/avahi-daemon/dbus-util.c:349: style[unreadVariable]: Variable 'size' is assigned a value that is never used.
Error: CPPCHECK_WARNING (CWE-398): [#def286]
avahi-0.9.rc3/avahi-daemon/dbus-util.c:349: warning[uselessAssignmentPtrArg]: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
Error: CPPCHECK_WARNING (CWE-398): [#def287]
avahi-0.9.rc3/avahi-daemon/dbus-util.c:415: style[constVariablePointer]: Variable 'egi' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def288]
avahi-0.9.rc3/avahi-daemon/ini-file-parser-test.c:42: style[constVariablePointer]: Variable 'p' can be declared as pointer to const
Error: GCC_ANALYZER_WARNING (CWE-775): [#def289]
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c: scope_hint: In function ‘avahi_ini_file_load’
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c:62:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c:47:9: note: in expansion of macro ‘avahi_new’
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c: scope_hint: In function ‘avahi_ini_file_load’
/usr/include/features.h:540: included_from: Included from here.
/usr/include/bits/libc-header-start.h:33: included_from: Included from here.
/usr/include/stdio.h:28: included_from: Included from here.
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c:24: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c:62:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c:47:9: note: in expansion of macro ‘avahi_new’
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c: scope_hint: In function ‘avahi_ini_file_load’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def291]
avahi-0.9.rc3/avahi-daemon/main.c: scope_hint: In function ‘get_machine_id’
avahi-0.9.rc3/avahi-daemon/main.c:609:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
avahi-0.9.rc3/avahi-common/llist.h:25: included_from: Included from here.
avahi-0.9.rc3/avahi-daemon/ini-file-parser.h:23: included_from: Included from here.
avahi-0.9.rc3/avahi-daemon/main.c:87: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def292]
avahi-0.9.rc3/avahi-daemon/main.c:612:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
Error: CPPCHECK_WARNING (CWE-398): [#def293]
avahi-0.9.rc3/avahi-daemon/main.c:930: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'dump' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CLANG_WARNING: [#def294]
avahi-0.9.rc3/avahi-daemon/main.c:1218:9: warning[unix.Chroot]: No call of chdir("/") immediately after chroot
Error: COMPILER_WARNING (CWE-252): [#def295]
avahi-0.9.rc3/avahi-daemon/main.c: scope_hint: In function ‘run_server’
avahi-0.9.rc3/avahi-daemon/main.c:1219:9: warning[-Wunused-result]: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def296]
avahi-0.9.rc3/avahi-daemon/main.c: scope_hint: In function ‘make_runtime_dir’
avahi-0.9.rc3/avahi-daemon/main.c:1445:5: warning[-Wunused-result]: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def297]
avahi-0.9.rc3/avahi-daemon/main.c: scope_hint: In function ‘init_rand_seed’
avahi-0.9.rc3/avahi-daemon/main.c:1510:9: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def298]
avahi-0.9.rc3/avahi-daemon/main.c: scope_hint: In function ‘init_rand_seed’
avahi-0.9.rc3/avahi-daemon/main.c:1511:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 0)’
Error: COMPILER_WARNING (CWE-252): [#def299]
avahi-0.9.rc3/avahi-daemon/main.c: scope_hint: In function ‘main’
avahi-0.9.rc3/avahi-daemon/main.c:1693:9: warning[-Wunused-result]: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def300]
avahi-0.9.rc3/avahi-daemon/simple-protocol.c: scope_hint: In function ‘client_output_printf’
avahi-0.9.rc3/avahi-daemon/simple-protocol.c:178:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
avahi-0.9.rc3/avahi-common/malloc.h:28: included_from: Included from here.
avahi-0.9.rc3/avahi-daemon/simple-protocol.c:41: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def301]
avahi-0.9.rc3/avahi-daemon/simple-protocol.c: scope_hint: In function ‘simple_protocol_setup’
avahi-0.9.rc3/avahi-daemon/simple-protocol.c:523:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*server.fd’
avahi-0.9.rc3/avahi-daemon/simple-protocol.c:465:14: note: in expansion of macro ‘avahi_new’
avahi-0.9.rc3/avahi-daemon/simple-protocol.c: scope_hint: In function ‘simple_protocol_setup’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def302]
avahi-0.9.rc3/avahi-daemon/simple-protocol.c:529:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*server.fd’
avahi-0.9.rc3/avahi-daemon/simple-protocol.c:465:14: note: in expansion of macro ‘avahi_new’
avahi-0.9.rc3/avahi-daemon/simple-protocol.c: scope_hint: In function ‘simple_protocol_setup’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def303]
avahi-0.9.rc3/avahi-daemon/static-hosts.c: scope_hint: In function ‘static_hosts_load’
avahi-0.9.rc3/avahi-daemon/static-hosts.c:182:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
avahi-0.9.rc3/avahi-daemon/static-hosts.c:182:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
Error: COMPILER_WARNING (CWE-704): [#def305]
avahi-0.9.rc3/avahi-daemon/static-services.c: scope_hint: In function ‘replacestr’
avahi-0.9.rc3/avahi-daemon/static-services.c:88:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def306]
avahi-0.9.rc3/avahi-daemon/static-services.c: scope_hint: In function ‘xml_cdata’
avahi-0.9.rc3/avahi-daemon/static-services.c:747:30: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-398): [#def307]
avahi-0.9.rc3/avahi-discover-standalone/main.c:268: style[constParameterCallback]: Parameter 'r' can be declared as pointer to const. However it seems that 'service_resolver_callback' is a callback function, if 'r' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def308]
avahi-0.9.rc3/avahi-discover-standalone/main.c:280: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'service_resolver_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def309]
avahi-0.9.rc3/avahi-discover-standalone/main.c:314: style[constParameterCallback]: Parameter 'event' can be declared as pointer to const. However it seems that 'main_window_on_delete_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def310]
avahi-0.9.rc3/avahi-discover-standalone/main.c:314: style[constParameterCallback]: Parameter 'widget' can be declared as pointer to const. However it seems that 'main_window_on_delete_event' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s).
Error: GCC_ANALYZER_WARNING (CWE-775): [#def311]
avahi-0.9.rc3/avahi-dnsconfd/main.c: scope_hint: In function ‘set_cloexec’
avahi-0.9.rc3/avahi-dnsconfd/main.c:132:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
avahi-0.9.rc3/avahi-common/malloc.h:28: included_from: Included from here.
avahi-0.9.rc3/avahi-dnsconfd/main.c:42: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-398): [#def312]
avahi-0.9.rc3/avahi-dnsconfd/main.c:325: style[variableScope]: The scope of the variable 'i' can be reduced.
Error: CPPCHECK_WARNING (CWE-571): [#def313]
avahi-0.9.rc3/avahi-dnsconfd/main.c:459: style[knownConditionTrueFalse]: Condition '!quit' is always true
Error: COMPILER_WARNING (CWE-252): [#def314]
avahi-0.9.rc3/avahi-dnsconfd/main.c: scope_hint: In function ‘main’
avahi-0.9.rc3/avahi-dnsconfd/main.c:618:9: warning[-Wunused-result]: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’
Error: CLANG_WARNING: [#def315]
avahi-0.9.rc3/avahi-glib/glib-watch-test.c:80:5: warning[core.NullDereference]: Access to field 'timeout_new' results in a dereference of a null pointer (loaded from variable 'api')
Error: CPPCHECK_WARNING (CWE-783): [#def316]
avahi-0.9.rc3/avahi-glib/glib-watch.c:95: style[clarifyCalculation]: Clarify calculation precedence for '&' and '?'.
Error: CPPCHECK_WARNING (CWE-783): [#def317]
avahi-0.9.rc3/avahi-glib/glib-watch.c:96: style[clarifyCalculation]: Clarify calculation precedence for '&' and '?'.
Error: CPPCHECK_WARNING (CWE-783): [#def318]
avahi-0.9.rc3/avahi-glib/glib-watch.c:97: style[clarifyCalculation]: Clarify calculation precedence for '&' and '?'.
Error: CPPCHECK_WARNING (CWE-783): [#def319]
avahi-0.9.rc3/avahi-glib/glib-watch.c:98: style[clarifyCalculation]: Clarify calculation precedence for '&' and '?'.
Error: COMPILER_WARNING (CWE-477): [#def320]
avahi-0.9.rc3/avahi-glib/glib-watch.c: scope_hint: In function 'prepare_func'
avahi-0.9.rc3/avahi-glib/glib-watch.c:269:9: warning[-Wdeprecated-declarations]: 'GTimeVal' is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
avahi-0.9.rc3/avahi-glib/glib-watch.h:28: included_from: Included from here.
avahi-0.9.rc3/avahi-glib/glib-watch.c:28: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:622:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def321]
avahi-0.9.rc3/avahi-glib/glib-watch.c: scope_hint: In function ‘prepare_func’
avahi-0.9.rc3/avahi-glib/glib-watch.c:269:9: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
avahi-0.9.rc3/avahi-glib/glib-watch.h:28: included_from: Included from here.
avahi-0.9.rc3/avahi-glib/glib-watch.c:28: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:622:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def322]
avahi-0.9.rc3/avahi-glib/glib-watch.c:273:9: warning[-Wdeprecated-declarations]: 'g_source_get_current_time' is deprecated: Use 'g_source_get_time' instead
/usr/include/glib-2.0/glib/giochannel.h:35: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gmain.h:802:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def323]
avahi-0.9.rc3/avahi-glib/glib-watch.c:273:9: warning[-Wdeprecated-declarations]: ‘g_source_get_current_time’ is deprecated: Use 'g_source_get_time' instead
/usr/include/glib-2.0/glib/giochannel.h:35: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gmain.h:802:10: note: declared here
Error: CPPCHECK_WARNING (CWE-398): [#def324]
avahi-0.9.rc3/avahi-glib/glib-watch.c:293: style[constVariablePointer]: Variable 'w' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-477): [#def325]
avahi-0.9.rc3/avahi-glib/glib-watch.c: scope_hint: In function 'check_func'
avahi-0.9.rc3/avahi-glib/glib-watch.c:299:9: warning[-Wdeprecated-declarations]: 'GTimeVal' is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/gtypes.h:622:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def326]
avahi-0.9.rc3/avahi-glib/glib-watch.c: scope_hint: In function ‘check_func’
avahi-0.9.rc3/avahi-glib/glib-watch.c:299:9: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/gtypes.h:622:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def327]
avahi-0.9.rc3/avahi-glib/glib-watch.c:301:9: warning[-Wdeprecated-declarations]: 'g_source_get_current_time' is deprecated: Use 'g_source_get_time' instead
/usr/include/glib-2.0/glib/gmain.h:802:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def328]
avahi-0.9.rc3/avahi-glib/glib-watch.c:301:9: warning[-Wdeprecated-declarations]: ‘g_source_get_current_time’ is deprecated: Use 'g_source_get_time' instead
/usr/include/glib-2.0/glib/gmain.h:802:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def329]
avahi-0.9.rc3/avahi-glib/glib-watch.c: scope_hint: In function 'dispatch_func'
avahi-0.9.rc3/avahi-glib/glib-watch.c:324:9: warning[-Wdeprecated-declarations]: 'GTimeVal' is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/gtypes.h:622:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def330]
avahi-0.9.rc3/avahi-glib/glib-watch.c: scope_hint: In function ‘dispatch_func’
avahi-0.9.rc3/avahi-glib/glib-watch.c:324:9: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/gtypes.h:622:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def331]
avahi-0.9.rc3/avahi-glib/glib-watch.c:326:9: warning[-Wdeprecated-declarations]: 'g_source_get_current_time' is deprecated: Use 'g_source_get_time' instead
/usr/include/glib-2.0/glib/gmain.h:802:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def332]
avahi-0.9.rc3/avahi-glib/glib-watch.c:326:9: warning[-Wdeprecated-declarations]: ‘g_source_get_current_time’ is deprecated: Use 'g_source_get_time' instead
/usr/include/glib-2.0/glib/gmain.h:802:10: note: declared here
Error: CPPCHECK_WARNING (CWE-398): [#def333]
avahi-0.9.rc3/avahi-gobject/ga-client.c:89: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def334]
avahi-0.9.rc3/avahi-gobject/ga-client.c:98: style[constVariablePointer]: Variable 'priv' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def335]
avahi-0.9.rc3/avahi-gobject/ga-client.c:108: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-477): [#def336]
avahi-0.9.rc3/avahi-gobject/ga-client.c: scope_hint: In function 'ga_client_class_init'
avahi-0.9.rc3/avahi-gobject/ga-client.c:117:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1503:10: note: declared here
Error: COMPILER_WARNING (CWE-192): [#def337]
avahi-0.9.rc3/avahi-gobject/ga-client.c:227:17: warning[-Wenum-conversion]: implicit conversion from 'AvahiClientState' to 'GaClientState'
Error: COMPILER_WARNING (CWE-192): [#def338]
avahi-0.9.rc3/avahi-gobject/ga-client.c:249:36: warning[-Wenum-conversion]: implicit conversion from 'GaClientFlags' to 'AvahiClientFlags'
Error: CPPCHECK_WARNING (CWE-398): [#def339]
avahi-0.9.rc3/avahi-gobject/ga-entry-group.c:99: style[constVariablePointer]: Variable 'priv' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def340]
avahi-0.9.rc3/avahi-gobject/ga-entry-group.c:106: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-477): [#def341]
avahi-0.9.rc3/avahi-gobject/ga-entry-group.c: scope_hint: In function 'ga_entry_group_class_init'
avahi-0.9.rc3/avahi-gobject/ga-entry-group.c:115:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1503:10: note: declared here
Error: COMPILER_WARNING (CWE-192): [#def342]
avahi-0.9.rc3/avahi-gobject/ga-entry-group.c:222:17: warning[-Wenum-conversion]: implicit conversion from 'AvahiEntryGroupState' to 'GaEntryGroupState'
Error: CPPCHECK_WARNING (CWE-398): [#def343]
avahi-0.9.rc3/avahi-gobject/ga-entry-group.c:324: style[constVariablePointer]: Variable 'kentry' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def344]
avahi-0.9.rc3/avahi-gobject/ga-entry-group.c:325: style[constVariablePointer]: Variable 'ventry' can be declared as pointer to const
Error: GCC_ANALYZER_WARNING (CWE-404): [#def345]
avahi-0.9.rc3/avahi-gobject/ga-entry-group.c: scope_hint: In function 'ga_entry_group_add_service'
avahi-0.9.rc3/avahi-gobject/ga-entry-group.c:422:11: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def346]
avahi-0.9.rc3/avahi-gobject/ga-entry-group.c: scope_hint: In function 'ga_entry_group_add_service_full'
avahi-0.9.rc3/avahi-gobject/ga-entry-group.c:451:11: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
Error: CPPCHECK_WARNING (CWE-398): [#def347]
avahi-0.9.rc3/avahi-gobject/ga-record-browser.c:74: style[constParameterCallback]: Parameter 'obj' can be declared as pointer to const. However it seems that 'ga_record_browser_init' is a callback function, if 'obj' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def348]
avahi-0.9.rc3/avahi-gobject/ga-record-browser.c:109: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def349]
avahi-0.9.rc3/avahi-gobject/ga-record-browser.c:118: style[constVariablePointer]: Variable 'priv' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def350]
avahi-0.9.rc3/avahi-gobject/ga-record-browser.c:140: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-477): [#def351]
avahi-0.9.rc3/avahi-gobject/ga-record-browser.c: scope_hint: In function 'ga_record_browser_class_init'
avahi-0.9.rc3/avahi-gobject/ga-record-browser.c:150:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1503:10: note: declared here
Error: CPPCHECK_WARNING (CWE-398): [#def352]
avahi-0.9.rc3/avahi-gobject/ga-service-browser.c:113: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def353]
avahi-0.9.rc3/avahi-gobject/ga-service-browser.c:122: style[constVariablePointer]: Variable 'priv' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def354]
avahi-0.9.rc3/avahi-gobject/ga-service-browser.c:141: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-477): [#def355]
avahi-0.9.rc3/avahi-gobject/ga-service-browser.c: scope_hint: In function 'ga_service_browser_class_init'
avahi-0.9.rc3/avahi-gobject/ga-service-browser.c:152:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1503:10: note: declared here
Error: CPPCHECK_WARNING (CWE-398): [#def356]
avahi-0.9.rc3/avahi-gobject/ga-service-resolver.c:125: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def357]
avahi-0.9.rc3/avahi-gobject/ga-service-resolver.c:134: style[constVariablePointer]: Variable 'priv' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def358]
avahi-0.9.rc3/avahi-gobject/ga-service-resolver.c:160: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-477): [#def359]
avahi-0.9.rc3/avahi-gobject/ga-service-resolver.c: scope_hint: In function 'ga_service_resolver_class_init'
avahi-0.9.rc3/avahi-gobject/ga-service-resolver.c:171:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1503:10: note: declared here
Error: CPPCHECK_WARNING (CWE-476): [#def360]
avahi-0.9.rc3/avahi-gobject/ga-service-resolver.c:369: warning[nullPointerRedundantCheck]: Either the condition 'client!=((void*)0)' is redundant or there is possible null pointer dereference: client.
Error: CPPCHECK_WARNING (CWE-398): [#def361]
avahi-0.9.rc3/avahi-gobject/ga-service-resolver.c:393: style[constVariablePointer]: Variable 'priv' can be declared as pointer to const
Error: COMPILER_WARNING: [#def362]
avahi-0.9.rc3/avahi-gobject/signals-marshal.c: scope_hint: In function '_ga_signals_marshal_VOID__INT_ENUM_STRING_STRING_STRING_STRING_POINTER_INT_POINTER_INT'
avahi-0.9.rc3/avahi-gobject/signals-marshal.c:88:14: warning[-Wpedantic]: ISO C forbids conversion of object pointer to function pointer type
Error: COMPILER_WARNING: [#def363]
avahi-0.9.rc3/avahi-gobject/signals-marshal.c: scope_hint: In function '_ga_signals_marshal_VOID__INT_ENUM_STRING_STRING_STRING_UINT'
avahi-0.9.rc3/avahi-gobject/signals-marshal.c:137:14: warning[-Wpedantic]: ISO C forbids conversion of object pointer to function pointer type
Error: COMPILER_WARNING: [#def364]
avahi-0.9.rc3/avahi-gobject/signals-marshal.c: scope_hint: In function '_ga_signals_marshal_VOID__INT_ENUM_STRING_UINT_UINT_POINTER_INT_INT'
avahi-0.9.rc3/avahi-gobject/signals-marshal.c:184:14: warning[-Wpedantic]: ISO C forbids conversion of object pointer to function pointer type
Error: CLANG_WARNING: [#def365]
avahi-0.9.rc3/avahi-libevent/libevent-watch-test.c:87:5: warning[core.NullDereference]: Access to field 'timeout_new' results in a dereference of a null pointer (loaded from variable 'api')
Error: COMPILER_WARNING (CWE-477): [#def366]
avahi-0.9.rc3/avahi-ui/avahi-ui.c: scope_hint: In function 'get_default_response'
avahi-0.9.rc3/avahi-ui/avahi-ui.c:140:9: warning[-Wdeprecated-declarations]: 'gtk_dialog_get_action_area' is deprecated
/usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:31: included_from: Included from here.
avahi-0.9.rc3/avahi-ui/avahi-ui.c:30: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkdialog.h:203:13: note: declared here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def367]
avahi-0.9.rc3/avahi-ui/avahi-ui.c: scope_hint: In function 'aui_service_dialog_new_valist'
avahi-0.9.rc3/avahi-ui/avahi-ui.c:257:32: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def368]
avahi-0.9.rc3/avahi-ui/avahi-ui.c:266:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def369]
avahi-0.9.rc3/avahi-ui/avahi-ui.c:273:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
Error: CPPCHECK_WARNING (CWE-398): [#def370]
avahi-0.9.rc3/avahi-ui/avahi-ui.c:346: style[constParameterCallback]: Parameter 'txt' can be declared as pointer to const. However it seems that 'resolve_callback' is a callback function, if 'txt' is declared with const you might also need to cast function pointer(s).
Error: COMPILER_WARNING: [#def371]
avahi-0.9.rc3/avahi-ui/avahi-ui.c: scope_hint: In function 'browse_callback'
avahi-0.9.rc3/avahi-ui/avahi-ui.c:522:13: warning[-Wimplicit-fallthrough=]: this statement may fall through
avahi-0.9.rc3/avahi-ui/avahi-ui.c:527:9: note: here
Error: COMPILER_WARNING: [#def372]
avahi-0.9.rc3/avahi-ui/avahi-ui.c: scope_hint: In function 'domain_browse_callback'
avahi-0.9.rc3/avahi-ui/avahi-ui.c:652:13: warning[-Wimplicit-fallthrough=]: this statement may fall through
avahi-0.9.rc3/avahi-ui/avahi-ui.c:657:9: note: here
Error: CPPCHECK_WARNING (CWE-570): [#def373]
avahi-0.9.rc3/avahi-ui/avahi-ui.c:758: style[unsignedLessThanZero]: Checking if unsigned expression 'd->priv->service_pulse_timeout' is less than zero.
Error: COMPILER_WARNING (CWE-477): [#def374]
avahi-0.9.rc3/avahi-ui/avahi-ui.c: scope_hint: In function 'response_callback'
avahi-0.9.rc3/avahi-ui/avahi-ui.c:891:9: warning[-Wdeprecated-declarations]: 'gdk_cursor_new' is deprecated: Use 'gdk_cursor_new_for_display' instead
/usr/include/gtk-3.0/gdk/gdk.h:34: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkcursor.h:228:12: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def375]
avahi-0.9.rc3/avahi-ui/avahi-ui.c: scope_hint: In function 'aui_service_dialog_init'
avahi-0.9.rc3/avahi-ui/avahi-ui.c:1136:5: warning[-Wdeprecated-declarations]: 'gtk_misc_set_alignment' is deprecated
/usr/include/gtk-3.0/gtk/gtklabel.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkaccellabel.h:35: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:33: included_from: Included from here.
/usr/include/gtk-3.0/gtk/deprecated/gtkmisc.h:72:9: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def376]
avahi-0.9.rc3/avahi-ui/avahi-ui.c:1187:5: warning[-Wdeprecated-declarations]: 'gtk_dialog_get_action_area' is deprecated
/usr/include/gtk-3.0/gtk/gtkdialog.h:203:13: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def377]
avahi-0.9.rc3/avahi-ui/avahi-ui.c:1188:5: warning[-Wdeprecated-declarations]: 'gtk_dialog_get_action_area' is deprecated
/usr/include/gtk-3.0/gtk/gtkdialog.h:203:13: note: declared here
Error: CPPCHECK_WARNING (CWE-570): [#def378]
avahi-0.9.rc3/avahi-ui/avahi-ui.c:1210: style[unsignedLessThanZero]: Checking if unsigned expression 'd->priv->start_idle' is less than zero.
Error: CPPCHECK_WARNING (CWE-398): [#def379]
avahi-0.9.rc3/avahi-ui/avahi-ui.c:1436: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def380]
avahi-0.9.rc3/avahi-ui/avahi-ui.c:1490: style[constVariablePointer]: Variable '_glib__object' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-686): [#def381]
avahi-0.9.rc3/avahi-ui/bssh.c:189: warning[invalidPrintfArgType_uint]: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'.
Error: CPPCHECK_WARNING (CWE-398): [#def382]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:98: style[constParameterPointer]: Parameter 'c' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-457): [#def383]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:151: warning[uninitvar]: Uninitialized variable: to
Error: CPPCHECK_WARNING (CWE-398): [#def384]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:154: style[constParameterPointer]: Parameter 'config' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def385]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:357: style[constVariablePointer]: Variable 'b' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def386]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:358: style[constVariablePointer]: Variable 'i' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def387]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:368: style[unreadVariable]: Variable 'b' is assigned a value that is never used.
Error: CLANG_WARNING: [#def388]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:368:11: warning[deadcode.DeadStores]: Although the value stored to 'b' is used in the enclosing expression, the value is never actually read from 'b'
Error: CPPCHECK_WARNING (CWE-398): [#def389]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:431: style[constVariablePointer]: Variable 'b' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def390]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:435: style[unreadVariable]: Variable 'b' is assigned a value that is never used.
Error: CLANG_WARNING: [#def391]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:435:11: warning[deadcode.DeadStores]: Although the value stored to 'b' is used in the enclosing expression, the value is never actually read from 'b'
Error: CPPCHECK_WARNING (CWE-398): [#def392]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:505: style[constVariablePointer]: Variable 'b' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-563): [#def393]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:509: style[unreadVariable]: Variable 'b' is assigned a value that is never used.
Error: CLANG_WARNING: [#def394]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:509:11: warning[deadcode.DeadStores]: Although the value stored to 'b' is used in the enclosing expression, the value is never actually read from 'b'
Error: CPPCHECK_WARNING (CWE-398): [#def395]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:786: style[constVariablePointer]: Variable 'ec' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def396]
avahi-0.9.rc3/avahi-utils/avahi-browse.c:839: style[constVariablePointer]: Variable 't' can be declared as pointer to const
Error: CPPCHECK_WARNING (CWE-398): [#def397]
avahi-0.9.rc3/avahi-utils/avahi-publish.c:129: style[constVariablePointer]: Variable 'i' can be declared as pointer to const
Error: COMPILER_WARNING (CWE-252): [#def398]
avahi-0.9.rc3/avahi-utils/sigint.c: scope_hint: In function ‘handler’
avahi-0.9.rc3/avahi-utils/sigint.c:55:5: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-475): [#def399]
avahi-0.9.rc3/examples/client-publish-service.c:115: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-475): [#def400]
avahi-0.9.rc3/examples/client-publish-service.c:125: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-398): [#def401]
avahi-0.9.rc3/examples/core-publish-service.c:42: style[constParameterCallback]: Parameter 'g' can be declared as pointer to const. However it seems that 'entry_group_callback' is a callback function, if 'g' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-475): [#def402]
avahi-0.9.rc3/examples/core-publish-service.c:103: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-475): [#def403]
avahi-0.9.rc3/examples/core-publish-service.c:109: portability[varFuncNullUB]: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
Error: CPPCHECK_WARNING (CWE-398): [#def404]
avahi-0.9.rc3/examples/glib-integration.c:34: style[constParameterCallback]: Parameter 'timeout' can be declared as pointer to const. However it seems that 'avahi_timeout_event' is a callback function, if 'timeout' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def405]
avahi-0.9.rc3/examples/glib-integration.c:34: style[constParameterCallback]: Parameter 'userdata' can be declared as pointer to const. However it seems that 'avahi_timeout_event' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s).
Error: CPPCHECK_WARNING (CWE-398): [#def406]
avahi-0.9.rc3/examples/glib-integration.c:57: style[variableScope]: The scope of the variable 'loop' can be reduced.
Error: CPPCHECK_WARNING (CWE-398): [#def407]
avahi-0.9.rc3/tests/c-plus-plus-test.cc:79: style[constParameter]: Parameter 'argv' can be declared as const array
Scan Properties
| analyzer-version-clang | 21.1.8 |
| analyzer-version-clippy | 1.93.0 |
| analyzer-version-cppcheck | 2.19.1 |
| 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 |
| enabled-plugins | clang, clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-12.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.20260119.105402.g7a5be1b.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | avahi-0.9.rc3-8.20260204005137549304.master.6.g1daf3f4 |
| store-results-to | /tmp/tmplm7opyxm/avahi-0.9.rc3-8.20260204005137549304.master.6.g1daf3f4.tar.xz |
| time-created | 2026-02-04 11:05:16 |
| time-finished | 2026-02-04 11:10:01 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,shellcheck,gcc,clippy' '-o' '/tmp/tmplm7opyxm/avahi-0.9.rc3-8.20260204005137549304.master.6.g1daf3f4.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmplm7opyxm/avahi-0.9.rc3-8.20260204005137549304.master.6.g1daf3f4.src.rpm' |
| tool-version | csmock-3.8.3.20260128.181932.g41af877-1.el9 |