Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't touch begin iterator (pointer) if begin == end. #2662

Closed
wants to merge 1 commit into from

Conversation

no-more-secrets
Copy link
Contributor

Fixes #2661.

@vitaut
Copy link
Contributor

vitaut commented Dec 18, 2021

Fixed in a slightly different way in 659de77.

@vitaut vitaut closed this Dec 18, 2021
@no-more-secrets no-more-secrets deleted the fix-begin-ub branch December 18, 2021 02:27
@no-more-secrets
Copy link
Contributor Author

Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undefined behavior adding 1 to nullptr
2 participants