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

Handle possible overflows in StringArrayBuilder / LargeStringArrayBuilder #13802

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

wiedld
Copy link
Contributor

@wiedld wiedld commented Dec 17, 2024

Which issue does this PR close?

Closes #13796

Rationale for this change

We identified a potential code vulnerability during a security audit at InfluxData.

What changes are included in this PR?

Make overflow a panic.

Are these changes tested?

yes

Are there any user-facing changes?

no

@wiedld wiedld force-pushed the 13796/handle-possible-overflows branch from 7f8c466 to dc76ea2 Compare December 17, 2024 04:17
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @wiedld -- I left some comments -- not sure about the ALIGNMENT thing

datafusion/functions/src/strings.rs Outdated Show resolved Hide resolved
datafusion/functions/src/strings.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @wiedld -- looks good to me

@alamb alamb marked this pull request as ready for review December 17, 2024 15:55
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.

Theoretical integer overflow in StringArrayBuilder / LargeStringArrayBuilder
2 participants