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
Review-Url: https://codereview.chromium.org/2066053002
Cr-Commit-Position: refs/heads/master@{#399956}
CrOS-Libchrome-Original-Commit: 3fd03b556675834c683e1453a168a874269b83fc
1 file changed