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

Issue 2902733002: Add MessageLoopForUI to the ubsan vptr blacklist. (Closed)

Created:
3 years, 7 months ago by fdoray
Modified:
3 years, 7 months ago
Reviewers:
Nico, pcc1
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add MessageLoopForUI to the ubsan vptr blacklist. MessageLoopForUI has the same layout as it base class. This is enforced by a static_assert in base/message_loop/message_loop.h: // Do not add any member variables to MessageLoopForUI! This is important b/c // MessageLoopForUI is often allocated via MessageLoop(TYPE_UI). Any extra // data that you need should be stored on the MessageLoop's pump_ instance. static_assert(sizeof(MessageLoop) == sizeof(MessageLoopForUI), "MessageLoopForUI should not have extra member variables"); BUG=725091 Review-Url: https://codereview.chromium.org/2902733002 Cr-Commit-Position: refs/heads/master@{#474276} Committed: https://chromium.googlesource.com/chromium/src/+/7dfa3e2c27b8254e156adf9a15f6d0ae261bf602

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M tools/ubsan/vptr_blacklist.txt View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (9 generated)
fdoray
PTAL
3 years, 7 months ago (2017-05-23 13:33:02 UTC) #4
Nico
Wow, sneaky. pcc, is CFI fine with things like this? (Doing this is undefined behavior, ...
3 years, 7 months ago (2017-05-23 14:29:24 UTC) #8
pcc1
On 2017/05/23 14:29:24, Nico wrote: > Wow, sneaky. pcc, is CFI fine with things like ...
3 years, 7 months ago (2017-05-23 17:52:01 UTC) #9
fdoray
On 2017/05/23 17:52:01, pcc1 wrote: > On 2017/05/23 14:29:24, Nico wrote: > > Wow, sneaky. ...
3 years, 7 months ago (2017-05-24 13:33:01 UTC) #10
Nico
lgtm
3 years, 7 months ago (2017-05-24 13:39:11 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2902733002/1
3 years, 7 months ago (2017-05-24 13:45:16 UTC) #13
commit-bot: I haz the power
3 years, 7 months ago (2017-05-24 13:59:36 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/7dfa3e2c27b8254e156adf9a15f6...

Powered by Google App Engine
This is Rietveld 408576698