We are doubling the _chars.Length when calculation newArrayLength, thus it's worth to check if we are not out of int.MaxValue. This fix allows to work on bigger files.