Skip to content

Should NULL data be allowed for mpack_write_str() with count of 0? #96

@schmidtw

Description

@schmidtw

I ran into a scenario where I'm hitting an assert (linked below) in mpack_write_str() when I pass NULL for data and 0 for the count. It seems reasonable to be able to pass this combination. No matter what, the data value shouldn't be dereferenced right?

mpack_assert(data != NULL, "data for string of length %i is NULL", (int)count);

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