Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
bluez-5.73/emulator/bthost.c: scope_hint: In function ‘l2cap_conn_req’
bluez-5.73/emulator/bthost.c:1763:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bthost_add_l2cap_conn(bthost,  conn, (int)rsp.dcid, (int)rsp.scid, (int)psm)’
bluez-5.73/emulator/bthost.c:38:34: note: in definition of macro ‘acl_handle’
bluez-5.73/emulator/bthost.c: scope_hint: In function ‘l2cap_conn_req’
bluez-5.73/emulator/bthost.c: scope_hint: In function ‘l2cap_conn_req’
# 1761|   						&conf_req, sizeof(conf_req));
# 1762|   
# 1763|-> 		if (cb_data && l2conn->psm == cb_data->psm && cb_data->func)
# 1764|   			cb_data->func(conn->handle, l2conn->dcid,
# 1765|   							cb_data->user_data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
bluez-5.73/src/shared/bap.c: scope_hint: In function 'iov_append'
bluez-5.73/src/shared/bap.c:332:16: warning[-Wanalyzer-malloc-leak]: leak of '*iov.iov_base'
#  330|   {
#  331|   	iov->iov_base = realloc(iov->iov_base, iov->iov_len + len);
#  332|-> 	return util_iov_push_mem(iov, len, d);
#  333|   }
#  334|   

Scan Properties

analyzer-version-clang18.1.3
analyzer-version-cppcheck2.13.0
analyzer-version-gcc14.0.1
analyzer-version-gcc-analyzer14.0.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.3
diffbase-analyzer-version-cppcheck2.13.0
diffbase-analyzer-version-gcc14.0.1
diffbase-analyzer-version-gcc-analyzer14.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-187.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namebluez-5.75-1.fc41
diffbase-store-results-to/tmp/tmpm8gqi9gz/bluez-5.75-1.fc41.tar.xz
diffbase-time-created2024-04-22 10:50:29
diffbase-time-finished2024-04-22 10:56:17
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpm8gqi9gz/bluez-5.75-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpm8gqi9gz/bluez-5.75-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-187.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namebluez-5.73-3.fc40
store-results-to/tmp/tmpdgbvdw7a/bluez-5.73-3.fc40.tar.xz
time-created2024-04-22 10:43:57
time-finished2024-04-22 10:50:04
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpdgbvdw7a/bluez-5.73-3.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpdgbvdw7a/bluez-5.73-3.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9