Skip to content

Conversation

original-brownbear
Copy link
Contributor

If source is larger than int_max/2 we overflow on the multiplication. Since we didn't use the same variable we will increment the breaker once and then increment it again with the broken overflown int on release.

If source is larger than int_max we overflow on the multiplication. Since we didn't use the same variable we will increment the breaker once and then increment it again with the broken overflown int on release.
@original-brownbear original-brownbear added >bug :Search/Search Search-related issues that do not fall into other categories v8.5.1 v8.6.0 v7.17.8 labels Oct 20, 2022
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Oct 20, 2022
@elasticsearchmachine
Copy link
Collaborator

Hi @original-brownbear, I've created a changelog YAML for you.

Copy link
Contributor

@iverase iverase left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Armin :)

@original-brownbear
Copy link
Contributor Author

np + thanks for reviewing!

@original-brownbear original-brownbear merged commit dcf5dc2 into elastic:main Oct 20, 2022
@original-brownbear original-brownbear deleted the fix-potential-overflow branch October 20, 2022 13:02
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Oct 20, 2022
If source is larger than int_max we overflow on the multiplication. Since we didn't use the same variable we will increment the breaker once and then increment it again with the broken overflown int on release.
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Oct 20, 2022
If source is larger than int_max we overflow on the multiplication. Since we didn't use the same variable we will increment the breaker once and then increment it again with the broken overflown int on release.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.5
7.17
elasticsearchmachine pushed a commit that referenced this pull request Oct 20, 2022
If source is larger than int_max we overflow on the multiplication. Since we didn't use the same variable we will increment the breaker once and then increment it again with the broken overflown int on release.
elasticsearchmachine pushed a commit that referenced this pull request Oct 20, 2022
If source is larger than int_max we overflow on the multiplication. Since we didn't use the same variable we will increment the breaker once and then increment it again with the broken overflown int on release.
@csoulios csoulios added v8.5.0 and removed v8.5.1 labels Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v7.17.8 v8.5.0 v8.6.0

4 participants