Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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.