From ad72907d4cb50d9f67ff12ca006c8e7b643679b6 Mon Sep 17 00:00:00 2001 From: "csharp@chromium.org" Date: Tue, 25 Mar 2014 05:15:23 +0000 Subject: Stop chrome_elf from patching already patched functions BUG=353978 Review URL: https://codereview.chromium.org/208273006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259157 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_elf/blacklist/blacklist.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome_elf/blacklist/blacklist.cc b/chrome_elf/blacklist/blacklist.cc index 19c7641..705cc60 100644 --- a/chrome_elf/blacklist/blacklist.cc +++ b/chrome_elf/blacklist/blacklist.cc @@ -244,8 +244,9 @@ bool Initialize(bool force) { if (!force && !LeaveSetupBeacon()) return false; - // Tells the resolver to patch already patched functions. - const bool kRelaxed = true; + // It is possible for other dlls to have already patched code by now and + // attempting to patch their code might result in crashes. + const bool kRelaxed = false; // Create a thunk via the appropriate ServiceResolver instance. sandbox::ServiceResolverThunk* thunk = GetThunk(kRelaxed); -- cgit v1.1