Skip to content

Dangling pointer in setManufacturerData with explicit company ID #56

@Biohazard90

Description

@Biohazard90

This code sets the member _manufacturerData to an array on the stack:

https://github.com/arduino-libraries/ArduinoBLE/blob/master/src/utility/GAP.cpp#L63

the program may crash or write nonsense into the advertising data when dereferencing that pointer again in:

https://github.com/arduino-libraries/ArduinoBLE/blob/master/src/utility/GAP.cpp#L108

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions