Fix broken COFF string table reading

This commit is contained in:
Matt Nadareski
2022-12-09 22:37:35 -08:00
parent 7895b40a77
commit ded5ecb3ed

View File

@@ -1936,7 +1936,7 @@ namespace BurnOutSharp.Builder
var strings = new List<string>();
uint totalSize = coffStringTable.TotalSize;
while (totalSize > 0)
while (totalSize > 0 && data.Position < data.Length)
{
long initialPosition = data.Position;
string str = data.ReadString();