Skip to content

Reading columns asynchronously with JsonNet plugin might throw ArgumentOutOfRangeException #6108

@vonzshik

Description

@vonzshik

That's because we pass the length of MemoryStream while copying from the buffer, which is 0.

var mem = new MemoryStream();
if (async)
await stream.CopyToAsync(mem, Math.Min((int)mem.Length, 81920), cancellationToken).ConfigureAwait(false);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions