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

Issue 10134001: Make sure that base::MessagePumpForUI from different modules are isolated from each other and add p… (Closed)

Created:
8 years, 8 months ago by alexeypa (please no reviews)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, erikwright (departed), sadrul, brettw-cc_chromium.org, ramant (doing other things), dharani1, rvargas (doing something else), jar (doing other things)
Visibility:
Public.

Description

Make sure that base::MessagePumpForUI from different modules are isolated from each other and add protection from shatter attacks by placing |this| pointer to the used data associated with the message-only window (instead of blindly trusting the value of WPARAM). BUG=124091 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133134

Patch Set 1 #

Total comments: 4

Patch Set 2 : CR feedback. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -29 lines) Patch
M base/message_pump_win.h View 1 chunk +6 lines, -0 lines 0 comments Download
M base/message_pump_win.cc View 1 8 chunks +65 lines, -24 lines 6 comments Download
M base/process_util.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/process_util_win.cc View 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
alexeypa (please no reviews)
Please take a look. Apparently there are other instances of improper use of RegisterClass() and ...
8 years, 8 months ago (2012-04-19 19:57:08 UTC) #1
brettw
lgtm https://chromiumcodereview.appspot.com/10134001/diff/1/base/message_pump_win.cc File base/message_pump_win.cc (right): https://chromiumcodereview.appspot.com/10134001/diff/1/base/message_pump_win.cc#newcode257 base/message_pump_win.cc:257: instance_ = base::GetModuleFromAddress(window_procedure); Can you add a comment ...
8 years, 8 months ago (2012-04-19 23:46:52 UTC) #2
alexeypa (please no reviews)
https://chromiumcodereview.appspot.com/10134001/diff/1/base/message_pump_win.cc File base/message_pump_win.cc (right): https://chromiumcodereview.appspot.com/10134001/diff/1/base/message_pump_win.cc#newcode257 base/message_pump_win.cc:257: instance_ = base::GetModuleFromAddress(window_procedure); On 2012/04/19 23:46:52, brettw wrote: > ...
8 years, 8 months ago (2012-04-20 00:21:53 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/10134001/5001
8 years, 8 months ago (2012-04-20 00:22:11 UTC) #4
commit-bot: I haz the power
Change committed as 133134
8 years, 8 months ago (2012-04-20 02:52:30 UTC) #5
jar (doing other things)
Folks are seeing some mysterious cases where threads are not responding on Windows.... so I ...
8 years, 7 months ago (2012-05-15 21:39:42 UTC) #6
jar (doing other things)
One other alternative..... You could leave the passing of |this| as a fallback, and use ...
8 years, 7 months ago (2012-05-15 21:52:06 UTC) #7
darin (slow to review)
Not sure I understand why setting UserData is better than passing WPARAM values. It seems ...
8 years, 7 months ago (2012-05-15 22:09:25 UTC) #8
alexeypa (please no reviews)
On 2012/05/15 21:39:42, jar wrote: > Folks are seeing some mysterious cases where threads are ...
8 years, 7 months ago (2012-05-15 22:09:50 UTC) #9
alexeypa (please no reviews)
http://codereview.chromium.org/10134001/diff/5001/base/message_pump_win.cc File base/message_pump_win.cc (right): http://codereview.chromium.org/10134001/diff/5001/base/message_pump_win.cc#newcode183 base/message_pump_win.cc:183: if (self != NULL) { On 2012/05/15 21:39:42, jar ...
8 years, 7 months ago (2012-05-15 22:10:27 UTC) #10
alexeypa (please no reviews)
On 2012/05/15 22:09:25, darin wrote: > Not sure I understand why setting UserData is better ...
8 years, 7 months ago (2012-05-15 22:22:18 UTC) #11
alexeypa (please no reviews)
8 years, 7 months ago (2012-05-15 22:24:11 UTC) #12
On 2012/05/15 21:39:42, jar wrote:
> Folks are seeing some mysterious cases where threads are not responding on
> Windows.... 

One more thing. I might be able to help you figuring out what is going on. At
least I can try. Please feel free to ping me if you have something to look at.

Powered by Google App Engine
This is Rietveld 408576698