apache / mynewt-nimble

Apache mynewt
https://mynewt.apache.org/
Apache License 2.0
680 stars 392 forks source link

nimble/host: Fix possible overflow in ble_gatts_peer_cl_sup_feat_update #1671

Closed sjanc closed 7 months ago

sjanc commented 8 months ago

This function would write pass conn->bhc_gatt_svr.peer_cl_sup_feat buffer. Since supported features are likely to be small (currently only 3 bits are defined) lets keep this simple and just make local copy before validation.

sjanc commented 8 months ago

@Roshan23699 FYI