Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Off-by-1 error in FASTQ InputFormat start positioning code #1383
This bug is in both the single and interleaved code.
I found it happens when the first character of the block accessed by FileSplit is '\n'. At that scenario, bufferLength=0 and buffer is empty. It causes an exception due to ArrayIndexOutOfBounds because try to get buffer.getBytes() in Line 66 on SingleFastqInputFormat.java.