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 potential int overflow #5442

merged 1 commit into from Nov 12, 2018


None yet
2 participants

ahorek commented Nov 12, 2018

long ms = int * int + int;

the multiplication is evaluated using int arithmetic even if you expect long


@kares kares added this to the JRuby milestone Nov 12, 2018

@kares kares merged commit 1c538d5 into jruby:master Nov 12, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment