[libcxx] Fix PR21580 - Undefined behavior in readEncodedPointer()
authorEric Fiselier <eric@efcs.ca>
Tue, 10 Mar 2015 20:43:34 +0000 (20:43 +0000)
committerEric Fiselier <eric@efcs.ca>
Tue, 10 Mar 2015 20:43:34 +0000 (20:43 +0000)
commite6cdf34116305bae21caeff1738625ce375bc196
tree7b154bc1f9ac0d049048a17475b638ef126c6482
parent8f6a115de96dcb777d388dd95efcd40d4139421e
[libcxx] Fix PR21580 - Undefined behavior in readEncodedPointer()

Summary: This patch fixes a bug in `readEncodedPointer()` where it would read from memory that was not suitably aligned. This patch fixes it by using memcpy.

Reviewers: danalbert, echristo, compnerd, mclow.lists

Reviewed By: compnerd, mclow.lists

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D8179

llvm-svn: 231839
libcxxabi/src/cxa_personality.cpp