commit | 25f51c6ab9e4b97001bda2d8bc6c8a5f144903dd | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <[email protected]> | Wed Nov 07 09:26:30 2018 -0800 |
committer | Mikhail Naganov <[email protected]> | Wed Nov 07 09:41:45 2018 -0800 |
tree | 55caa1b32fe600fd7540aff987a5c98cfa3b02a3 | |
parent | 78515967f08dbb91a43c8d0f27d3712a3ce676d3 [diff] |
NativeMIDI: Fix access to unaligned 64-bit data Accessing unaligned 64-bit data in 32-bit ARM code leads to SIGBUS / BUS_ADRALN fault. Since the timestamp position in the message buffer is arbitrary, use memcpy to copy it to the output argument. Bug: 114123427 Test: 32-bit android.nativemidi.cts.NativeMidiEchoTest Change-Id: I0cb08cb0b124e3f4a05ea19bf91f40081a584a2e