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

gcc check strict overflow v2 #78

Merged
merged 2 commits into from
Nov 28, 2016

Conversation

gatzka
Copy link
Contributor

@gatzka gatzka commented Nov 28, 2016

No description provided.

Otherwise, the check is just undefined behaviour. gcc even takes out
this check because len can never be zero if len does not wrap around.

Found with -Wstrict-overflow=2
…t occur.

This switch is only active when making a release build.
@FSMaxB FSMaxB merged commit 59cf411 into DaveGamble:master Nov 28, 2016
@gatzka gatzka deleted the feature/gcc_check_strict_overflow_v2 branch November 28, 2016 19:07
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.

2 participants