commit | 19a88669c37b67d698bb6acbe87bc2f016112aef | [log] [tgz] |
---|---|---|
author | Greg Kaiser <gkaiser@google.com> | Wed Jan 29 13:48:09 2020 -0800 |
committer | Greg Kaiser <gkaiser@google.com> | Wed Jan 29 15:28:55 2020 -0800 |
tree | b7a5bcb125312764cb6047dd8e3fc5626c8c6426 | |
parent | e9437d2ee36f2b657e9d8e533c84634101bcd6ea [diff] |
LogEvent: Avoid unaligned assignment of value Since we can have 'T' be things like int64_t, and we're arbitrarily incrementing 'mBuf', we're not always assured 'mBuf' will be properly aligned for an assignment. We do a check and use memcpy() if it's going to be unsafe. Test: TreeHugger Bug: 148549384 Change-Id: I76fd12a3241a997acf4625c9ce1176ae76c5bff2