csv
csv copied to clipboard
Parser hangs with no error if content ends with unclosed escape sequence and no ending newline
- 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