-Not correctly resizing internal string buffer when parsing long JSON documents
This commit is contained in:
@@ -75,7 +75,7 @@ namespace Newtonsoft.Json
|
||||
|
||||
private void EnsureSize(int appendLength)
|
||||
{
|
||||
char[] newBuffer = new char[_position + appendLength * 2];
|
||||
char[] newBuffer = new char[(_position + appendLength) * 2];
|
||||
|
||||
Array.Copy(_buffer, newBuffer, _position);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user