修正stdin.buffer.read(bufferlength)溢出的bug