KKopyscinski opened a new pull request, #1766:
URL: https://github.com/apache/mynewt-nimble/pull/1766
Two functions: `ble_l2cap_coc_continue_tx` and `ble_l2cap_coc_recv_ready`
can be reached from other task than host, for example separate thread running
in application, by calling `ble_l2cap_recv_ready` or `ble_l2cap_send`. Because
pointer to chan passed into these functions may be outdated (connection is
being terminated by host) this will lead to either:
- triggering BLE_HS_DBG_ASSERT(conn != NULL) in ble_hs_conn_find_assert
- dereferencing NULL pointer to conn, after ble_hs_conn_find_assert returns
NULL (case with disabled BLE_HS_DEBUG) These two cases shall not cause assert,
and should be prepared for chan not existing anymore. Now, BLE_HS_ENOTCONN is
returned if connection no longer exists.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]