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:
parent
b3c6c43789
commit
17c90a7e17
|
|
@ -111,7 +111,7 @@ namespace Microsoft.AspNetCore.NodeServices.Util
|
||||||
// get the rest
|
// get the rest
|
||||||
if (lineBreakPos < 0 && startPos < chunkLength)
|
if (lineBreakPos < 0 && startPos < chunkLength)
|
||||||
{
|
{
|
||||||
_linesBuffer.Append(buf, startPos, chunkLength);
|
_linesBuffer.Append(buf, startPos, chunkLength - startPos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue