Fix undefined behavior in WTF::equal() in StringImpl.h for i386/x86_64
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Mar 2014 15:21:06 +0000 (15:21 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Mar 2014 15:21:06 +0000 (15:21 +0000)
commit617c0349e513c3ea07f579325907b09852ec6d35
treefc727e74f3917b93d221293c5873858f780b92c2
parent0b0b8d34505b5306c24be8032e366d6ebb9240bb
Fix undefined behavior in WTF::equal() in StringImpl.h for i386/x86_64
<http://webkit.org/b/130283>
<rdar://problem/16281477>

Reviewed by Geoff Garen.

* wtf/text/StringImpl.h:
(WTF::loadUnaligned): Add template method.
(WTF::equal): Switch to using loadUnaligned<>().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165681 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/text/StringImpl.h