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 overflow bug in SortingNumericDocValues (#70154) #70196

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Mar 10, 2021

This was found when performing some abusing geogrid aggregations. During resizing of the array, we are computing the size of the array as an integer, which may overflow if the size of the new array is big. This PR just make sure that computing the new size is done using long

backport #70154

@iverase iverase merged commit 624e523 into elastic:7.x Mar 10, 2021
@iverase iverase deleted the backport70154 branch March 10, 2021 07:34
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.

1 participant