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

fix some undefined behaviour #351

Merged
merged 1 commit into from May 17, 2019

Conversation

@ScorrMorr
Copy link

commented May 9, 2019

fix integer overflow and division by zero

warzone2100/src/mapgrid.cpp:97:22: runtime error: signed integer overflow: 53568 * 53568 cannot be represented in type 'int'
warzone2100/src/mapgrid.cpp:97:30: runtime error: signed integer overflow: 52288 * 52288 cannot be represented in type 'int'
warzone2100/src/mapgrid.cpp:97:26: runtime error: signed integer overflow: -1425436672 + -1560932352 cannot be represented in type 'int'
ScorrMorr
@KJeff01 KJeff01 added this to the 3.3.0_beta2 milestone May 9, 2019
@KJeff01 KJeff01 merged commit fa02178 into Warzone2100:master May 17, 2019
7 of 8 checks passed
7 of 8 checks passed
LGTM analysis: JavaScript No code changes detected
Details
LGTM analysis: C/C++ No new or fixed alerts
Details
LGTM analysis: Python No new or fixed alerts
Details
WIP Ready for review
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
freebsd_build FreeBSD:freebsd-11-2-release-amd64 Task Summary
Details
freebsd_build FreeBSD:freebsd-12-0-release-amd64 Task Summary
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.