espressif / esp-nimble

A fork of NimBLE stack, for use with ESP32 and ESP-IDF
Apache License 2.0
76 stars 49 forks source link

Small fix to ble_gap_unpair_oldest_peer to avoid writing to invalid memory #60

Closed csmith-morningstar closed 3 months ago

csmith-morningstar commented 8 months ago

There was a recent change to ble_gap_unpair_oldest_peer that fixed how ble_store_util_bonded_pairs was called. However that fix did not increase the size of the buffer, so the call to ble_store_util_bonded_pairs would result in writing past the buffer passed in. This small change fixes that behavior.

CLAassistant commented 8 months ago

CLA assistant check
All committers have signed the CLA.

rahult-github commented 3 months ago

Change is part of IDF