Skip to content

Commit

Permalink
Stop chrome_elf from patching already patched functions
Browse files Browse the repository at this point in the history
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
  • Loading branch information
csharp@chromium.org committed Mar 25, 2014
1 parent 513dc2d commit ad72907
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chrome_elf/blacklist/blacklist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ad72907

Please sign in to comment.