excilys/gatling — pull request #1564 by froden (2013-12-19 07:53:47+00:00)
Title: Fixed two issues in BytesInputStream.read

The check to determine if all bytes were read used the wrong length
variable (local instead of field). This potentially caused the stream to never
report eof and some stream operations would never terminate.

The check to prevent reading more bytes than available also used the
wrong lenght variable (local instead of field). This caused an
ArrayIndexOutOfBoudsException in System.arraycopy().