We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db2c403 commit 8e6717dCopy full SHA for 8e6717d
1 file changed
Selenium/Serializer/JsonReader.cs
@@ -92,7 +92,7 @@ private string DebugValue {
92
}
93
94
private object DeserializeNext(int depth) {
95
- if (depth++ < DEPTH_MAX)
+ if (depth-- < 1)
96
throw new JsonException("DepthLimitExceeded", _index);
97
98
_index--;
@@ -410,7 +410,7 @@ private char DeserializeUnicode() {
410
/// </summary>
411
/// <returns>True if not end of bytes, false otherwise</returns>
412
private bool MoveNextNonEmptyChar() {
413
- while (++_index < _length) {
+ for (_index = _index + 1; _index < _length; _index++) {
414
int b0 = _buffer[_index];
415
if (b0 > 0x7F) {
416
if (++_index >= _length)
0 commit comments