commit | 7d9c0676c81b12e9374b2bebd472b83170e22f27 | [log] [tgz] |
---|---|---|
author | Andres Morales <anmorales@google.com> | Thu Jul 09 16:01:24 2015 -0700 |
committer | Andres Morales <anmorales@google.com> | Thu Jul 09 23:26:44 2015 +0000 |
tree | 68599a3e707fae9f9a147ab7e89cf1cf713adcc5 | |
parent | e7a3844425850f3219a7ff59706609f73f3035d7 [diff] |
[gatekeeperd] copy uid to local before passing to u_map The compiler will issue the unaligned access instuctions when reading from a packed struct. Since 'find' takes a reference, if we pass the field directly it is removed from its packed context and may be unreadable. Read the field out directly from the packed struct and pass in aligned to u_map to fix. Bug: 22367550 Change-Id: Ia3b639c7518154ff5a2b7c233b752e154eab9aad