csv icon indicating copy to clipboard operation
csv copied to clipboard

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

Open andrewtimberlake opened this issue 1 year ago • 0 comments

  • 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

andrewtimberlake avatar Oct 14 '24 09:10 andrewtimberlake