Skip to content

assert for name if equal to nullptr in sfShader_setXXXUnfiorm #329

@ZXShady

Description

@ZXShady

currently if name is nullptr it will implicitly construct a temporary std::string from the call to shader->This.setUniform such as this function and passing nullptr to std::string is UB see 9th constructor so an assertion to check if name is null would help prevent UB in debug builds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions