Force memcpy when reading a float, to avoid alignment issues
commit522fbeaf970881e5293e8f75cf5534ffb5a20d42
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 18 Nov 2013 00:50:25 +0000 (18 00:50 +0000)
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 18 Nov 2013 00:50:25 +0000 (18 00:50 +0000)
treec5144705628c421ad3b2ac9071c2b9246f8ca297
parent955f7416a711a1f8a1fe2b2a6704aca67bbc955f
Force memcpy when reading a float, to avoid alignment issues

Despite our best efforts to align data when writing, when reading the data may
not be sufficiently aligned, causing some ARM platforms to SIGBUS when reading
floats. Force a memcpy instead to sidestep the issue.

BUG=315213

Review URL: https://codereview.chromium.org/73333002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235590 0039d316-1c4b-4281-b951-d872f2087c98
base/pickle.cc