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

LEAdvertisingReportEP.Unmarshal panics for bad length packets #78

Open
thomasf opened this issue Jul 9, 2016 · 0 comments
Open

LEAdvertisingReportEP.Unmarshal panics for bad length packets #78

thomasf opened this issue Jul 9, 2016 · 0 comments

Comments

@thomasf
Copy link

thomasf commented Jul 9, 2016

This has paniced for me a few times, seems like something might be sending bad data (?).

That function could probably benefit from some additional length checks in general if it isn't done somewhere else.

panic(0x5a0b08, 0x10d0a018)
    /home/thomasf/.opt/go/src/runtime/panic.go:481 +0x330
.../vendor/github.com/currantlabs/gatt/linux/evt.(*LEAdvertisingReportEP).Unmarshal(0x12416f80, 0x1312500e, 0x1, 0xff2, 0x0, 0x0)
    .../vendor/github.com/currantlabs/gatt/linux/evt/evt.go:327 +0xb5c
.../vendor/github.com/currantlabs/gatt/linux.(*HCI).handleAdvertisement(0x114a4050, 0x13125003, 0xc, 0xffd)
    .../vendor/github.com/currantlabs/gatt/linux/hci.go:259 +0x78
created by .../vendor/github.com/currantlabs/gatt/linux.(*HCI).handleLEMeta
    .../vendor/github.com/currantlabs/gatt/linux/hci.go:371 +0xc4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant