Skip to content
Commit f10daf7c authored by Thomas Ebert Hansen's avatar Thomas Ebert Hansen Committed by Carles Cufí
Browse files

Bluetooth: host: Fix DB hash calculation



When hashing attributes for the UUID cases:
    BT_UUID_GATT_PRIMARY_VAL
    BT_UUID_GATT_SECONDARY_VAL
    BT_UUID_GATT_INCLUDE_VAL
    BT_UUID_GATT_CHRC_VAL
    BT_UUID_GATT_CEP_VAL

where (handle || UUID || value) is to be hashed, the worst case size of
attribute value can be deduced from the associated union that describes
all the attribute values in the given cases.

Update the data array to accommodate for the worst case size.

Fixes #39131

Signed-off-by: default avatarThomas Ebert Hansen <thoh@oticon.com>
parent 5b721ef6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment