summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-28 19:06:32 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-28 19:06:32 +0000
commitdd4b07ea2e92b6e9af4c08bde30fee0017a708a6 (patch)
tree67e8112bdc6fa05f13b09c4df4509290e044a0b2 /sandbox
parent934208b4d7ae50dc37527caf050015fcf5b5ae4c (diff)
downloadchromium_src-dd4b07ea2e92b6e9af4c08bde30fee0017a708a6.zip
chromium_src-dd4b07ea2e92b6e9af4c08bde30fee0017a708a6.tar.gz
chromium_src-dd4b07ea2e92b6e9af4c08bde30fee0017a708a6.tar.bz2
Sandbox: Fix the memory protection code to handle page boundaries.
BUG=43867 TEST=none Review URL: http://codereview.chromium.org/6034008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70233 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/src/sandbox_nt_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/src/sandbox_nt_util.cc b/sandbox/src/sandbox_nt_util.cc
index 20035b3..e730ddb 100644
--- a/sandbox/src/sandbox_nt_util.cc
+++ b/sandbox/src/sandbox_nt_util.cc
@@ -473,7 +473,7 @@ NTSTATUS AutoProtectMemory::ChangeProtection(void* address, size_t bytes,
if (NT_SUCCESS(ret)) {
changed_ = true;
address_ = address;
- bytes_ = bytes;
+ bytes_ = new_bytes;
}
return ret;