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

Issue 7606016: Added code to verify whether TerminateProcess is hooked before calling it. (Closed)

Created:
9 years, 4 months ago by apatrick_chromium
Modified:
9 years, 4 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Added code to verify whether TerminateProcess is hooked before calling it. This is to diagnose the bug referenced below. I think it is possible that a third party DLL is hooking TerminateProcess with a replacement that uses the wrong calling convention or has the wrong number of arguments, which causes Process::Terminate to return to the wrong address, causing a crash. I put it in ThreadFunc because this is visible on the stack when the crash happens and because it is a windows specific .cc file. BUG=81449

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M base/threading/platform_thread_win.cc View 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
apatrick_chromium
Sorry.
9 years, 4 months ago (2011-08-10 00:39:37 UTC) #1
darin (slow to review)
LGTM ... fun times!
9 years, 4 months ago (2011-08-10 06:36:37 UTC) #2
commit-bot: I haz the power
9 years, 4 months ago (2011-08-11 00:05:24 UTC) #3
Change committed as 96266

Powered by Google App Engine
This is Rietveld 408576698