зеркало из https://github.com/dotnet/aspnetcore.git
Fixed adding a string with a large number of trailing zeros to StringBuilder, which sometimes caused the thread to hang
This commit is contained in:
Родитель
b3c6c43789
Коммит
17c90a7e17
|
@ -111,7 +111,7 @@ namespace Microsoft.AspNetCore.NodeServices.Util
|
|||
// get the rest
|
||||
if (lineBreakPos < 0 && startPos < chunkLength)
|
||||
{
|
||||
_linesBuffer.Append(buf, startPos, chunkLength);
|
||||
_linesBuffer.Append(buf, startPos, chunkLength - startPos);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче