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

Issue 2066053002: Fix AlignedMemory initialization in base/optional.h (Closed)

Created:
4 years, 6 months ago by ortuno
Modified:
4 years, 6 months ago
Reviewers:
danakj, krasin
CC:
chromium-reviews, mlamouri (slow - plz ping)
Base URL:
https://chromium.googlesource.com/chromium/src.git@my-origin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix AlignedMemory initialization in base/optional.h AlignedMemory::data_as<T>() casts a void pointer to AlignedMemory::data_ to a T pointer. Before initializing an AlignedMemory instance, AlignedMemory::data_ contains garbage so trying to cast a void pointer to it to a T pointer results in a CFI violation. BUG=619351 Committed: https://crrev.com/3fd03b556675834c683e1453a168a874269b83fc Cr-Commit-Position: refs/heads/master@{#399956}

Patch Set 1 #

Patch Set 2 : Fix windows #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M base/optional.h View 1 1 chunk +3 lines, -3 lines 2 comments Download

Messages

Total messages: 19 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2066053002/1
4 years, 6 months ago (2016-06-14 22:16:57 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2066053002/20001
4 years, 6 months ago (2016-06-14 23:12:48 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/203360)
4 years, 6 months ago (2016-06-14 23:51:54 UTC) #6
krasin
lgtm https://codereview.chromium.org/2066053002/diff/20001/base/optional.h File base/optional.h (right): https://codereview.chromium.org/2066053002/diff/20001/base/optional.h#newcode243 base/optional.h:243: new (storage_.buffer_.void_data()) T(value); Right. Before new is called, ...
4 years, 6 months ago (2016-06-15 06:24:13 UTC) #8
ortuno
https://codereview.chromium.org/2066053002/diff/20001/base/optional.h File base/optional.h (right): https://codereview.chromium.org/2066053002/diff/20001/base/optional.h#newcode243 base/optional.h:243: new (storage_.buffer_.void_data()) T(value); On 2016/06/15 at 06:24:13, krasin wrote: ...
4 years, 6 months ago (2016-06-15 14:32:27 UTC) #10
ortuno
danakj: PTAL at this fix.
4 years, 6 months ago (2016-06-15 14:34:35 UTC) #13
danakj
LGTM
4 years, 6 months ago (2016-06-15 17:15:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2066053002/20001
4 years, 6 months ago (2016-06-15 17:16:36 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-15 18:10:46 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 18:13:12 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3fd03b556675834c683e1453a168a874269b83fc
Cr-Commit-Position: refs/heads/master@{#399956}

Powered by Google App Engine
This is Rietveld 408576698