Skip to content

Validate num_splits in split - #3234

Merged
angeloskath merged 1 commit into
ml-explore:mainfrom
MillaFleurs:pr-3233-fix-crash
Mar 10, 2026
Merged

angeloskath merged 1 commit into
ml-explore:mainfrom
MillaFleurs:pr-3233-fix-crash

Conversation

@MillaFleurs

@MillaFleurs MillaFleurs commented Mar 9, 2026 •

Copy link
Copy Markdown
Contributor

#3233

Describe the bug
split(num_splits) lacks validation for non-positive num_splits, enabling divide-by-zero and invalid allocations
split fails to throw an error instead it crashes python3

Checklist

Put an x in the boxes that apply.

[x] I have read the CONTRIBUTING document
[x] I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have updated the necessary documentation (if needed)

@MillaFleurs

Copy link
Copy Markdown
Contributor Author

Updated with linter run now, sorry for the confusion!

@zcbenz zcbenz changed the title python crash fix PR#3233 Validate num_splits in split Mar 10, 2026

@angeloskath angeloskath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@angeloskath
angeloskath merged commit a25399c into ml-explore:main Mar 10, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants