Skip to content

Memory corruption #7

@ilcaprone3d

Description

@ilcaprone3d

There are problems in many methods using sprintf.
The size of the destination buffer is too short.
It doesn't take in consideration of the string terminator.

For example in Rn487xBle::startImmediateAdvertising
char c[2] ;
sprintf(c, "%02X", adType) ;

In my test I got random crashes and not predictable behavior
A simple solution is to increase the size of the buffer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions