Skip to content

Commit a571fcb

Browse files
ds5678gompoc
authored andcommitted
Fix overflow in TryGetLiteralAt
1 parent 59a1e51 commit a571fcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cpp2IL.Core/Utils/MiscUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ internal static string[] GetGenericParams(string input)
101101

102102
public static string? TryGetLiteralAt(Il2CppBinary theDll, ulong rawAddr)
103103
{
104-
if (theDll.RawLength <= (long)rawAddr)
104+
if ((ulong)theDll.RawLength <= rawAddr)
105105
return null;
106106

107107
var c = Convert.ToChar(theDll.GetByteAtRawAddress(rawAddr));

0 commit comments

Comments
 (0)