Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service data slice copy indexing UUID bytes #24

Open
dvcorreia opened this issue Oct 1, 2021 · 0 comments
Open

Service data slice copy indexing UUID bytes #24

dvcorreia opened this issue Oct 1, 2021 · 0 comments

Comments

@dvcorreia
Copy link

gatt/adv.go

Line 2000 in df6e615

copy(serviceData.Data, d[2:])

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant