Skip to content

UB constructing std::string with 0 #665

@Amaroker

Description

@Amaroker

String is an alias for std::string

and these two lines will construct std::string with a null pointer, which is undefined behaviour:

if ( index >= mInputInfosArray.getCount () ) return 0;

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