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

Parser hangs with no error if content ends with unclosed escape sequence and no ending newline #132

Open
andrewtimberlake opened this issue Oct 14, 2024 · 0 comments

Comments

@andrewtimberlake
Copy link

andrewtimberlake commented Oct 14, 2024

  • Is your input CSV RFC 4180 compliant? no
  • Are you interested in helping with a PR? yes, but had a look and wouldn’t know were to start

This test will hang until timeout

  test "decode CSV with incomplete quoting and no end of line" do
    results = ["a,b\n", "c,\"d,e"]
    |> Stream.map(& &1)
    |> CSV.Decoding.Decoder.decode()
    |> Enum.take(3)

    assert results == []
  end
kylewhite21 added a commit to kylewhite21/csv that referenced this issue Oct 24, 2024
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

No branches or pull requests

1 participant