Task #16 - fixed.err
back to task #16download
Error: GCC_ANALYZER_WARNING (CWE-476): 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): 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|