Changed bytes.ErrTooLarge to io.ErrShortBuffer, it makes more sense.