summaryrefslogtreecommitdiffstats
path: root/base/process_util.h
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-20 02:52:28 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-20 02:52:28 +0000
commite4642bccfa470354c0c3326dc4539898bd5cb2eb (patch)
treec9e7a05485ac1409b4217d6535752915d8a34319 /base/process_util.h
parent602542d6a7ea6313321d9badfe232df3daf12cef (diff)
downloadchromium_src-e4642bccfa470354c0c3326dc4539898bd5cb2eb.zip
chromium_src-e4642bccfa470354c0c3326dc4539898bd5cb2eb.tar.gz
chromium_src-e4642bccfa470354c0c3326dc4539898bd5cb2eb.tar.bz2
Make sure that base::MessagePumpForUI from different modules are isolated from each other and add protection from shatter attacks by placing |this| pointer to the used data associated with the message-only window (instead of blindly trusting the value of WPARAM).
BUG=124091 Review URL: http://codereview.chromium.org/10134001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133134 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r--base/process_util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/process_util.h b/base/process_util.h
index 1aab778..f2e53cb 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -146,7 +146,8 @@ BASE_EXPORT ProcessId GetCurrentProcId();
BASE_EXPORT ProcessHandle GetCurrentProcessHandle();
#if defined(OS_WIN)
-// Returns the module handle to which an address belongs.
+// Returns the module handle to which an address belongs. The reference counter
+// of the module is not incremented.
BASE_EXPORT HMODULE GetModuleFromAddress(void* address);
#endif