Skip to content

Fix infinite loop on trailing delimiters when parsing CSV - #56

Merged
azimafroozeh merged 3 commits into
cwida:devfrom
azimafroozeh:fix/csvparser-trailing-empty-field
Jul 28, 2025
Merged

Fix infinite loop on trailing delimiters when parsing CSV#56
azimafroozeh merged 3 commits into
cwida:devfrom
azimafroozeh:fix/csvparser-trailing-empty-field

Conversation

@azimafroozeh

Copy link
Copy Markdown
Contributor

When a CSV line ends with a delimiter (creating an empty final field), the parser would enter a state where it emitted endless row‑end tokens and never reached EOF. This PR ensures that any pending row boundary is emitted exactly once, allowing the parser to advance past empty trailing fields and terminate normally.

@azimafroozeh
azimafroozeh merged commit 6f5651d into cwida:dev Jul 28, 2025
76 checks passed
@azimafroozeh
azimafroozeh deleted the fix/csvparser-trailing-empty-field branch July 28, 2025 19:13
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