Skip to content

Fix integer overflow in @Order of RepositoryRelProvider #2478

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

Closed
wants to merge 1 commit into from

Conversation

therepanic
Copy link
Contributor

@therepanic therepanic commented May 9, 2025

As @bgiddens wrote in #2477, it was probably assumed that we didn't want the lowest priority, that's why we subtract 10. However, if we plus, then a stack overflow is triggered and vice versa, the order is highest.

Fixes: #2477

…rojects#2477)

Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 9, 2025
@mp911de mp911de added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels May 12, 2025
@mp911de mp911de self-assigned this May 12, 2025
mp911de pushed a commit that referenced this pull request May 13, 2025
Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>

Closes: #2477
Original pull request: #2478
mp911de added a commit that referenced this pull request May 13, 2025
Add test.

See: #2477
Original pull request: #2478
mp911de pushed a commit that referenced this pull request May 13, 2025
Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>

Closes: #2477
Original pull request: #2478
mp911de added a commit that referenced this pull request May 13, 2025
Add test.

See: #2477
Original pull request: #2478
mp911de pushed a commit that referenced this pull request May 13, 2025
Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>

Closes: #2477
Original pull request: #2478
mp911de added a commit that referenced this pull request May 13, 2025
Add test.

See: #2477
Original pull request: #2478
@mp911de mp911de added this to the 4.3.12 (2024.0.12) milestone May 13, 2025
@mp911de
Copy link
Member

mp911de commented May 13, 2025

Thank you for your contribution. That's merged, polished, and backported now.

@mp911de mp911de closed this May 13, 2025
mp911de pushed a commit that referenced this pull request May 13, 2025
Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>

Closes: #2477
Original pull request: #2478
mp911de added a commit that referenced this pull request May 13, 2025
Add test.

See: #2477
Original pull request: #2478
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integer overflow in bean ordering causes inadvertent prioritization
3 participants