From e2e021adc00191fcbe0d9c548ad6591053ea5d50 Mon Sep 17 00:00:00 2001 From: typpos <28550406+typpos@users.noreply.github.com> Date: Thu, 4 Feb 2021 18:39:54 +1100 Subject: [PATCH] (#526) Fix: CopyLimit overflows at 4GB. --- Sandboxie/core/dll/file_copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sandboxie/core/dll/file_copy.c b/Sandboxie/core/dll/file_copy.c index a5aea353..ac69a42a 100644 --- a/Sandboxie/core/dll/file_copy.c +++ b/Sandboxie/core/dll/file_copy.c @@ -128,7 +128,7 @@ found_match: // if tere is no configuration for this file type/path decide based on the file size // - if (File_CopyLimitKb == -1 || file_size < (File_CopyLimitKb * 1024)) + if (File_CopyLimitKb == -1 || file_size < ((ULONGLONG)File_CopyLimitKb * 1024)) return FILE_COPY_CONTENT; //