Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
bluez-5.87/btio/btio.c:255:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘g_io_channel_unix_get_fd(io)’
bluez-5.87/btio/btio.c:255:12: branch_false: following ‘false’ branch...
bluez-5.87/btio/btio.c:275:20: branch_false: ...to here
bluez-5.87/btio/btio.c:255:13: danger: ‘g_io_channel_unix_get_fd(io)’ leaks here
#  253|   	srv_sock = g_io_channel_unix_get_fd(io);
#  254|   
#  255|-> 	if (cond & G_IO_ERR) {
#  256|   		int err, sk_err;
#  257|   		socklen_t len = sizeof(sk_err);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
bluez-5.87/src/shared/bap.c:1008:9: warning[-Wanalyzer-malloc-leak]: leak of '*((struct bap_metadata_process)*(void *)user_data).rsp.iov_base'
bluez-5.87/src/shared/bap.c:3423:13: enter_function: entry to 'bap_metadata_process'
bluez-5.87/src/shared/bap.c:3433:20: branch_true: following 'true' branch (when 'l != 2')...
bluez-5.87/src/shared/bap.c:3434:53: branch_true: ...to here
bluez-5.87/src/shared/bap.c:3434:25: call_function: calling 'ascs_ase_rsp_add' from 'bap_metadata_process'
# 1006|   	rsp->ase = id;
# 1007|   	rsp->code = code;
# 1008|-> 	rsp->reason = reason;
# 1009|   }
# 1010|   

Error: CPPCHECK_WARNING (CWE-476): [#def3]
bluez-5.87/tools/mesh/mesh-db.c:2604: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hdr
# 2602|   	 */
# 2603|   
# 2604|-> 	pos = strrchr(hdr, '}');
# 2605|   	if (!pos)
# 2606|   		goto done;

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
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-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-225.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-namebluez-5.86-4.fc44
diffbase-store-results-to/tmp/tmphchyonoj/bluez-5.86-4.fc44.tar.xz
diffbase-time-created2026-08-03 13:28:36
diffbase-time-finished2026-08-03 13:33:04
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmphchyonoj/bluez-5.86-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmphchyonoj/bluez-5.86-4.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.7.HEAD-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-225.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-namebluez-5.87-4.fc45
store-results-to/tmp/tmpzh_r9xlh/bluez-5.87-4.fc45.tar.xz
time-created2026-08-03 13:33:23
time-finished2026-08-03 13:36:59
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpzh_r9xlh/bluez-5.87-4.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpzh_r9xlh/bluez-5.87-4.fc45.src.rpm'
tool-versioncsmock-3.8.7.HEAD-1.el9