Skip to content

Commit 234d783

Browse files
committed
Log invalid Pipe.Advance
1 parent c1e219a commit 234d783

File tree

1 file changed

+1
-0
lines changed
  • src/libraries/System.IO.Pipelines/src/System/IO/Pipelines

1 file changed

+1
-0
lines changed

src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/Pipe.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ internal void Advance(int bytes)
469469
{
470470
if ((uint)bytes > (uint)_writingHeadMemory.Length)
471471
{
472+
System.Console.WriteLine("Out of Range exception");
472473
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.bytes);
473474
}
474475

0 commit comments

Comments
 (0)