Skip to content

std::tolower(-5) #9

@OlafvdSpek

Description

@OlafvdSpek

I think this is undefined behavior.. tolower requires 'unsigned' input.

boost\algorithm\string\detail\case_conv.hpp:
return std::tolower<CharT>( Ch, *m_Loc );

std::string s(5, -5); // 5x char(-5)
boost::to_lower(s);

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