mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(bt_stack): Fix some critical bugs in classic_bt stack
related: obex, smp, pbap, sdp, rfcomm, stack_dm - Deinit function doesn't delete connection when OBEX_DYNAMIC_MEMORY is on - Union tGOEPC_DATA sometimes is free by osi_free in some cases when it contains mtu_id - Add correct free and return solution after fail - Fix symbol mistake in mod calculation - Fix pointer-related UAF problems and memory free problems - Fix buffer overflows and out-of-bounds access - Fix infinite loops triggered by integer overflow wraparound - Fix double free - Change layer_specific usage to avoid heap overflow - Add some NULL check for pointers - Fix sdp_db free function - Fix state table mismatch
This commit is contained in:
@@ -85,7 +85,7 @@ typedef union
|
||||
typedef void (tOBEX_TL_CBACK)(tOBEX_TL_EVT evt, tOBEX_TL_MSG *msg);
|
||||
|
||||
typedef struct {
|
||||
void (*init)(tOBEX_TL_CBACK *callback);
|
||||
UINT16 (*init)(tOBEX_TL_CBACK *callback);
|
||||
void (*deinit)(void);
|
||||
UINT16 (*connect)(tOBEX_TL_SVR_INFO *server);
|
||||
void (*disconnect)(UINT16 tl_hdl);
|
||||
|
||||
Reference in New Issue
Block a user