You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
AsSpan(int startIndex, int length) and ToString(int startIndex, int length) throw an ArgumentOutOfRangeException when the requested range ends after Length, instead of returning characters from the unused part of the buffer.
The indexer throws an IndexOutOfRangeException for an index at or after Length, instead of giving access to the unused part of the buffer.
Append/AppendLine with an interpolated string could return the rented array to the ArrayPool twice when an interpolation hole threw after the buffer grew. Reported by @dhhoang in #324