Skip to content

String == String does not work with embedded NUL characters #112

Open
@cvwillegen

Description

@cvwillegen

return strcmp(buffer, s.buffer);
and
return strcmp(buffer, s.buffer);
should use memcmp() to make sure that a String object can be compared to another String object that has embedded NUL characters

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions