Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: chrome_elf/blacklist/blacklist_interceptions.cc

Issue 101203010: Add 64-bit support to browser blacklisting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: responding to comments Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Implementation of NtMapViewOfSection intercept for 32 bit builds. 5 // Implementation of NtMapViewOfSection intercept for 32 bit builds.
6 // 6 //
7 // TODO(robertshield): Implement the 64 bit intercept. 7 // TODO(robertshield): Implement the 64 bit intercept.
8 8
9 #include "chrome_elf/blacklist/blacklist_interceptions.h" 9 #include "chrome_elf/blacklist/blacklist_interceptions.h"
10 10
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 if (!module_name.empty() && DllMatch(module_name)) { 222 if (!module_name.empty() && DllMatch(module_name)) {
223 DCHECK_NT(g_nt_unmap_view_of_section_func); 223 DCHECK_NT(g_nt_unmap_view_of_section_func);
224 g_nt_unmap_view_of_section_func(process, *base); 224 g_nt_unmap_view_of_section_func(process, *base);
225 ret = STATUS_UNSUCCESSFUL; 225 ret = STATUS_UNSUCCESSFUL;
226 } 226 }
227 } 227 }
228 228
229 return ret; 229 return ret;
230 } 230 }
231 231
232 #if defined(_WIN64)
233 NTSTATUS WINAPI BlNtMapViewOfSection64(
234 HANDLE section, HANDLE process, PVOID *base, ULONG_PTR zero_bits,
235 SIZE_T commit_size, PLARGE_INTEGER offset, PSIZE_T view_size,
236 SECTION_INHERIT inherit, ULONG allocation_type, ULONG protect) {
237 return BlNtMapViewOfSection(g_nt_map_view_of_section_func, section, process,
238 base, zero_bits, commit_size, offset, view_size,
239 inherit, allocation_type, protect);
240 }
241 #endif
232 } // namespace blacklist 242 } // namespace blacklist
OLDNEW
« no previous file with comments | « chrome_elf/blacklist/blacklist_interceptions.h ('k') | chrome_elf/blacklist/test/blacklist_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698