From 234d78306a13ef2d71df16aa57c95a106162818a Mon Sep 17 00:00:00 2001 From: Radek Zikmund Date: Fri, 3 May 2024 09:54:51 +0200 Subject: [PATCH] Log invalid Pipe.Advance --- .../System.IO.Pipelines/src/System/IO/Pipelines/Pipe.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/Pipe.cs b/src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/Pipe.cs index 655f731b813adf..83b004287e7613 100644 --- a/src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/Pipe.cs +++ b/src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/Pipe.cs @@ -469,6 +469,7 @@ internal void Advance(int bytes) { if ((uint)bytes > (uint)_writingHeadMemory.Length) { + System.Console.WriteLine("Out of Range exception"); ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.bytes); }