We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5747489 + babfc56 commit 1cc2ab3Copy full SHA for 1cc2ab3
1 file changed
src/LibObjectFile/ObjectFileStreamExtensions.cs
@@ -60,7 +60,7 @@ public static string ReadStringUTF8NullTerminated(this Stream stream)
60
break;
61
}
62
63
- if (textLength > buffer.Length)
+ if (textLength >= buffer.Length)
64
{
65
var newBuffer = ArrayPool<byte>.Shared.Rent((int)textLength * 2);
66
Array.Copy(buffer, 0, newBuffer, 0, buffer.Length);
0 commit comments