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

Fix crash when detecting delimiting on short streams #245

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

Ostrzyciel
Copy link
Member

When the input stream is empty or very short (<3 bytes), the delimiting autodetection procedure will fail with an unhelpful exception. This change should make the failure occur later, in the parser, where it belongs.

When the input stream is empty or very short (<3 bytes), the delimiting autodetection procedure will fail with an unhelpful exception. This change should make the failure occur later, in the parser, where it belongs.
@Ostrzyciel Ostrzyciel merged commit 0486da9 into main Dec 21, 2024
4 checks passed
@Ostrzyciel Ostrzyciel deleted the detect-delimit-short-streams branch December 21, 2024 15:27
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.

1 participant