Skip to content

Commit 2c08853

Browse files
committed
Bound overlay checking in GetV4Version
1 parent 04355d8 commit 2c08853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BinaryObjectScanner/Protection/SecuROM.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public List<string> CheckDirectoryPath(string path, List<string>? files)
157157
// Search for the "AddD" string in the overlay
158158
bool found = false;
159159
int index = 0;
160-
for (; index < 0x100; index++)
160+
for (; index < 0x100 && index + 4 < overlayData.Length; index++)
161161
{
162162
int temp = index;
163163
byte[] overlaySample = overlayData.ReadBytes(ref temp, 0x04);

0 commit comments

Comments
 (0)