Due to missing length checks an invalid response may cause an ArrayIndexOutOfBoundsException to be thrown.