Skip to content

Protection against buffer overrun #1

@jeremyherbert

Description

@jeremyherbert

Hi,

Thanks for publishing this library! I have just been looking at using it in an embedded project, but it seems that when constructing json objects, it is possible to overrun the string buffer without knowing. Perhaps it is worth adding an argument (or a series of “_s” suffixed methods) which take an additional length parameter and checks that the length of the string does not increase beyond the allocated buffer length ?

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