-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-49159: [C++][Gandiva] Detect overflow in repeat() #49160
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
Conversation
|
|
|
@lriggs @akravchukdremio @xxlaykxx You may want to review this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not an expert but the fix looks good to me.
|
@pitrou what do you think about this? |
|
@pitrou I plan to merge this in a couple hours and proceed with the release. Just in case you want to take a look at the latest change. |
### Rationale for this change `repeat()` can only generate `< 2147483647` size output. So output larger than `2147483647` must be rejected. ### What changes are included in this PR? Add overflow check in `repeat()`. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * GitHub Issue: #49159 Lead-authored-by: Sutou Kouhei <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Raúl Cumplido <[email protected]>
Rationale for this change
repeat()can only generate< 2147483647size output. So output larger than2147483647must be rejected.What changes are included in this PR?
Add overflow check in
repeat().Are these changes tested?
Yes.
Are there any user-facing changes?
Yes.
repeat()doesn't check output size #49159