It's possible for the returned length to be 0. I don't fully understand why this happens(I don't fully understand the codebase) but the result is an overflow error on line 212 in debug mode, or attempting to allocate a huge array in release mode. This adds a quick check and bails if the length is invalid.
It's possible for the returned length to be 0. I don't fully understand why this happens(I don't fully understand the codebase) but the result is an overflow error on line 212 in debug mode, or attempting to allocate a huge array in release mode. This adds a quick check and bails if the length is invalid.