gatt icon indicating copy to clipboard operation
gatt copied to clipboard

Service data slice copy indexing UUID bytes

Open dvcorreia opened this issue 4 years ago • 0 comments

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).

dvcorreia avatar Oct 01 '21 09:10 dvcorreia