From a2259f1488a18b15efbec61f417f087a55c49917 Mon Sep 17 00:00:00 2001 From: liorbp Date: Sun, 15 Dec 2019 21:39:11 +0200 Subject: [PATCH] fix pointer truncation caused by bad cast of 'LPVOID' to 'int' Fix is needed for x64 shellcodes --- blobrunner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blobrunner.c b/blobrunner.c index 75138ff..d4cdfef 100644 --- a/blobrunner.c +++ b/blobrunner.c @@ -94,7 +94,7 @@ void execute(LPVOID base, int offset, bool nopause, bool autobreak, bool debug) #endif - entry = (LPVOID)((int)base + offset); + entry = (LPVOID)((ULONG_PTR)base + offset); #ifdef _WIN64 @@ -190,4 +190,4 @@ int main(int argc, char* argv[]) printf ("Pausing - Press any key to quit.\n"); getchar(); return 0; -} \ No newline at end of file +}