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

Issue 796363002: Fixed an ordering issue found by UBSan_vptr. (Closed)

Created:
6 years ago by Sven Panne
Modified:
6 years ago
Reviewers:
dcarney
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fixed an ordering issue found by UBSan_vptr. We managed to access the scope_ member of CompilationInfo before its containing object was actually constructed. Rule of thumb: When constructing an object, never ever pass around pointers to members which come later in the member initializer list, you simply can't see locally if this might cause trouble or not.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -14 lines) Patch
M src/code-stubs-hydrogen.cc View 7 chunks +15 lines, -14 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Sven Panne
Tiny brain teaser... :-D
6 years ago (2014-12-12 11:50:57 UTC) #2
dcarney
lgtm
6 years ago (2014-12-12 11:52:33 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/796363002/1
6 years ago (2014-12-12 12:09:40 UTC) #5
commit-bot: I haz the power
6 years ago (2014-12-12 12:36:07 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1)

Powered by Google App Engine
This is Rietveld 408576698