Skip to content

[Uri] Uri(String, UriKind) throws IndexOutOfRangeException for certain inputs #1487

@davkean

Description

@davkean

We're relying on Uri in the http://github.com/dotnet/project-system, to represent paths. Testing our path handling code, I found that Uri throws IndexOutOfRangeException (instead of UriFormatException) in the following situations:

new Uri("/\\‎//", UriKind.Absolute);
new Uri("\\/\u200e", UriKind.Absolute);
new Uri("/\\\\\r", UriKind.Absolute);
new Uri("\\\\\\\\\\‎", UriKind.Absolute);

Metadata

Metadata

Assignees

Labels

area-System.Netbugin-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions