From 48c8a7820ae455758df618d9543edaa86059b7af Mon Sep 17 00:00:00 2001 From: deep0 Date: Wed, 12 Mar 2014 02:01:01 +0100 Subject: [PATCH] fix buffer overflow --- TitanEngine/TitanEngine.Static.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TitanEngine/TitanEngine.Static.cpp b/TitanEngine/TitanEngine.Static.cpp index 344d3d3..74c5866 100644 --- a/TitanEngine/TitanEngine.Static.cpp +++ b/TitanEngine/TitanEngine.Static.cpp @@ -230,7 +230,7 @@ __declspec(dllexport) void TITCALL StaticMemoryDecrypt(LPVOID MemoryStart, DWORD BYTE DataByte = NULL; WORD DataWord = NULL; DWORD DataDword = NULL; - ULONG_PTR DataQword = NULL; + ULONG64 DataQword = NULL; //ignore too big stuff if(DecryptionKeySize>sizeof(ULONG_PTR))