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

Addressed a bug in the new caching code as reported by Sonar #196

Merged
merged 1 commit into from
Aug 15, 2018
Merged

Addressed a bug in the new caching code as reported by Sonar #196

merged 1 commit into from
Aug 15, 2018

Conversation

lucaspcram
Copy link
Contributor

@lucaspcram lucaspcram commented Aug 15, 2018

Description:

A long constant in ByteArrayCachingStrategy was being initialized by multiplying together 3 integer constants. In this case, there was no problem. But if, in the future, someone changed a constant to a large value then overflow could occur.

I believe this is the shortest PR ever.

Potential Impact:

N/A

Unit Test Approach:

N/A

Test Results:

N/A


In doubt: Contributing Guidelines

@lucaspcram lucaspcram added the Bug label Aug 15, 2018
@MikeGost MikeGost merged commit a50bf44 into osmlab:dev Aug 15, 2018
@lucaspcram lucaspcram deleted the sonarfix branch August 16, 2018 18:19
@matthieun matthieun added this to the 5.1.9 milestone Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants