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
tree: c08324dfccaa593bd1a2cac2cdf10c71d831bca4
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/