Skip to content

Bad read from OnString Listener #3

@chumager

Description

@chumager

Hi, when I tried your library I realize it ain't get te correct String in the callback, so I added a extra line and modified one to assure the string is created correctly.

CborDecoder.cpp:344 (in the char* assignment in the OnString callback)
unsigned char data[currentLength+1];//one space more to "the null terminated" standar
data[currentLength]=0;//assign the null at the end of the string.

I hope this could help for further development.

Best regards.

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