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

Use unsigned integer for hashing algorithm #3851

Merged
merged 1 commit into from
May 15, 2019

Conversation

wbh123456
Copy link
Contributor

The hashing function used signed intger for varaible hash and seed,
which could lead to integer overflow. Fix the issue by changing the
signed integer type to unsigned.

Closes: #1794
Signed-off-by: Bohao(Aaron) Wang [email protected]

The hashing function used signed intger for varaible hash and seed,
which could lead to integer overflow. Fix the issue by changing the
signed integer type to unsigned.

Closes: eclipse-omr#1794
Signed-off-by: Bohao(Aaron) Wang <[email protected]>
@Leonardo2718
Copy link
Contributor

@genie-omr build all

Copy link
Contributor

@Leonardo2718 Leonardo2718 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Leonardo2718 Leonardo2718 merged commit 2d1e785 into eclipse-omr:master May 15, 2019
@wbh123456 wbh123456 deleted the SignedIntegerOverflow branch May 27, 2019 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Signed Integer Overflow in TR_RandomSeedSignatureHash
2 participants