From 45ed0a39a88e022d0ee6fbcf0c972ad624ae4bc9 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 11 Jul 2015 15:35:31 -0700 Subject: [PATCH] win-capture: Don't mark string mem. as executable This is writing a string which LoadLibraryW can read in the target process; it's not being executed so there's no reason to mark it as executable. --- plugins/win-capture/inject-library.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/win-capture/inject-library.c b/plugins/win-capture/inject-library.c index 754942e4a..844927321 100644 --- a/plugins/win-capture/inject-library.c +++ b/plugins/win-capture/inject-library.c @@ -50,8 +50,7 @@ int inject_library_obf(HANDLE process, const wchar_t *dll, /* -------------------------------- */ size = (wcslen(dll) + 1) * sizeof(wchar_t); - mem = virtual_alloc_ex(process, NULL, size, MEM_COMMIT, - PAGE_EXECUTE_READWRITE); + mem = virtual_alloc_ex(process, NULL, size, MEM_COMMIT, PAGE_READWRITE); if (!mem) { goto fail; }