gatt
gatt copied to clipboard
Service data slice copy indexing UUID bytes
https://github.com/bettercap/gatt/blob/df6e615f2f67bd19ca29e20f0f0895c3ff617519/adv.go#L2000
Shouldn't this line be:
copy(serviceData.Data, d[w:])
Seems like copy is indexing some bytes of the UUID in cases typeServiceData32 (Service Data 32-bit UUID) and typeServiceData128 (Service Data 128-bit UUID).