Skip to content

Encoder.Convert throws for charCount == 0 #44247

@stephentoub

Description

@stephentoub

It seems like charCount == 0 should be a nop. Instead it throws an exception about overflowing a buffer.

Same applies to Decoder.Convert.

I hit this while writing tests for TranscodingStream.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions