Newly introduced findings

List of Findings

Error: CPPCHECK_WARNING (CWE-476): [#def1]
avahi-0.9.rc4/avahi-daemon/dbus-protocol.c:287: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
#  285|   
#  286|       s = malloc(10);
#  287|->     s[0] = '\0';
#  288|       avahi_log_debug("%s", s);
#  289|       free(s);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
avahi-0.9.rc4/avahi-daemon/dbus-protocol.c: scope_hint: In function ‘dbus_is_ns_support_available’
avahi-0.9.rc4/avahi-daemon/dbus-protocol.c:287:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’
#  285|   
#  286|       s = malloc(10);
#  287|->     s[0] = '\0';
#  288|       avahi_log_debug("%s", s);
#  289|       free(s);

Error: CPPCHECK_WARNING (CWE-415): [#def3]
avahi-0.9.rc4/avahi-daemon/dbus-protocol.c:293: error[doubleFree]: Memory pointed to by 's' is freed twice.
#  291|           return dbus_parsing_error("Error parsing Server::IsNSSSupportAvailable message", error);
#  292|       }
#  293|->     free(s);
#  294|   
#  295|       return avahi_dbus_respond_boolean(c, m, nss_support);

Error: GCC_ANALYZER_WARNING (CWE-415): [#def4]
avahi-0.9.rc4/avahi-daemon/dbus-protocol.c:293:5: warning[-Wanalyzer-double-free]: double-‘free’ of ‘s’
#  291|           return dbus_parsing_error("Error parsing Server::IsNSSSupportAvailable message", error);
#  292|       }
#  293|->     free(s);
#  294|   
#  295|       return avahi_dbus_respond_boolean(c, m, nss_support);

Error: COMPILER_WARNING: [#def5]
avahi-0.9.rc4/avahi-daemon/dbus-protocol.c: scope_hint: In function ‘dbus_is_ns_support_available’
avahi-0.9.rc4/avahi-daemon/dbus-protocol.c:293:5: warning[-Wuse-after-free]: pointer ‘s_7’ may be used after ‘free’
#  293 |     free(s);
#      |     ^~~~~~~
avahi-0.9.rc4/avahi-daemon/dbus-protocol.c:289:5: note: call to ‘free’ here
#  289 |     free(s);
#      |     ^~~~~~~
#  291|           return dbus_parsing_error("Error parsing Server::IsNSSSupportAvailable message", error);
#  292|       }
#  293|->     free(s);
#  294|   
#  295|       return avahi_dbus_respond_boolean(c, m, nss_support);

Error: CLANG_WARNING: [#def6]
avahi-0.9.rc4/avahi-daemon/dbus-protocol.c:293:5: warning[unix.Malloc]: Attempt to release already released memory
#  291|           return dbus_parsing_error("Error parsing Server::IsNSSSupportAvailable message", error);
#  292|       }
#  293|->     free(s);
#  294|   
#  295|       return avahi_dbus_respond_boolean(c, m, nss_support);

Scan Properties

analyzer-version-clang22.1.8
analyzer-version-clippy1.96.0
analyzer-version-cppcheck2.21.0
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clang22.1.8
diffbase-analyzer-version-clippy1.96.0
diffbase-analyzer-version-cppcheck2.21.0
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclang, clippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-45.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameavahi-0.9.rc4-8.20260620004020501971.master.46.g16fe942
diffbase-store-results-to/tmp/tmpzw1_1ifu/avahi-0.9.rc4-8.20260620004020501971.master.46.g16fe942.tar.xz
diffbase-time-created2026-06-20 07:31:51
diffbase-time-finished2026-06-20 07:35:29
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpzw1_1ifu/avahi-0.9.rc4-8.20260620004020501971.master.46.g16fe942.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpzw1_1ifu/avahi-0.9.rc4-8.20260620004020501971.master.46.g16fe942.src.rpm'
diffbase-tool-versioncsmock-3.8.6.20260619.162144.gb9cd2d0-1.el9
enabled-pluginsclang, clippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-45.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameavahi-0.9.rc4-8.20260620072042711230.pr3.48.gc144c86
store-results-to/tmp/tmp5l8_ed67/avahi-0.9.rc4-8.20260620072042711230.pr3.48.gc144c86.tar.xz
time-created2026-06-20 07:35:57
time-finished2026-06-20 07:39:02
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmp5l8_ed67/avahi-0.9.rc4-8.20260620072042711230.pr3.48.gc144c86.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmp5l8_ed67/avahi-0.9.rc4-8.20260620072042711230.pr3.48.gc144c86.src.rpm'
tool-versioncsmock-3.8.6.20260619.162144.gb9cd2d0-1.el9