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
Microsoft.Extensions.Primitives.StringSegment does not handle null backing buffers consistently. One example:
Console.WriteLine(default(StringSegment).IndexOfAny(new[]{'x'}));// prints -1Console.WriteLine(default(StringSegment).IndexOf('x'));// throws ArgumentOutOfRangeExceptionConsole.WriteLine(default(StringSegment).LastIndexOf('x'));// prints -1
Tagging subscribers to this area: @eerhardt, @maryamariyan
See info in area-owners.md if you want to be subscribed.
Issue Details
Microsoft.Extensions.Primitives.StringSegment does not handle null backing buffers consistently. One example:
Console.WriteLine(default(StringSegment).IndexOfAny(new[]{'x'}));// prints -1Console.WriteLine(default(StringSegment).IndexOf('x'));// throws ArgumentOutOfRangeException
Microsoft.Extensions.Primitives.StringSegment
does not handle null backing buffers consistently. One example:(Related: #39140)
The text was updated successfully, but these errors were encountered: