Skip to content

ArrayIndexOutOfBoundsException when skipping empty lines, comments #191

@f-julian

Description

@f-julian

Hi we found a bug in the csv parsing.

For some csv files parsing fails with:

java.lang.ArrayIndexOutOfBoundsException: Index 4000 out of bounds for length 4000 at com.fasterxml.jackson.dataformat.csv.impl.CsvDecoder.skipLinesWhenNeeded(CsvDecoder.java:527) at com.fasterxml.jackson.dataformat.csv.impl.CsvDecoder.startNewLine(CsvDecoder.java:499)

I did some digging it happens if there is a newline as char 4000 in the csv file.

Happens in versions > 2.10.0

I think it was introduced with #15

Can i help with a fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions