Skip to content

Dns.GetHostEntry do not validate for null characters #128641

@mrek-msft

Description

@mrek-msft

Dns.GetHostEntry do not work well when hostname to resolve contains \0 character. Call under the hood pass such string to native library which interprets it as an end of the string and thus translation fails. It would be nice to include validation and throw ArgumentException or something like that and do not attempt to translate it at all.

Metadata

Metadata

Assignees

Labels

area-System.NetuntriagedNew issue has not been triaged by the area owner

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions