Skip to content

assert for nullptr when passing to functions taking std::string_view implicitly. #338

@ZXShady

Description

@ZXShady

in CSFML
sfIpAddress_fromString and sfContext_isExtentionAvaialable which takes a string view it is UB to pass nullptr as it is not a valid range see 4th constructor. so an assert checking for null before passing would help debug issues.

sfml function signatures
Context::isExtentionAvaiable

IpAddress::resolve

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions