Skip to content

Conversation

@ChrisThrasher
Copy link
Member

For these functions, providing a null pointer argument would result in invoking undefined behavior. As far as I know, these are the last functions in CSFML where nullptr args could potentially be converted into a std::string thus invoking UB. We have more const char* parameters but those values get checked for nullness before use so UB is not a concern in those cases.

For these functions, providing a null pointer argument would result
in invoking undefined behavior.
@ChrisThrasher ChrisThrasher added this to the 3.0 milestone Sep 16, 2024
@ChrisThrasher ChrisThrasher merged commit d26c691 into master Sep 17, 2024
@ChrisThrasher ChrisThrasher deleted the nullptr_assertions branch September 17, 2024 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants