diff options
author | Tom Cherry <tomcherry@google.com> | 2017-11-14 08:50:43 -0800 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2017-11-15 10:31:49 -0800 |
commit | 4362f897f73f95b5b9e48f2b758b5800f1cc83a2 (patch) | |
tree | c02e8677078fba76d19b08d95427af4391cc329e /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 315dd896deae928f3e64f94d75cd20566cc95183 (diff) |
Only use uids and gids for which we've allocated AIDs
Currently, getpwnam, getpwent, etc return successfully for any uid
from AID_APP_START (10000) to AID_USER_OFFSET (100000) for each user.
This is not correct however, as only specific ranges above
AID_APP_START are reserved as valid ranges. This change corrects this.
This is particularly important as the newly added AID_OVERFLOWUID is
65534, which is above AID_APP_START but not in any reserved range,
collided with the faulty returned values.
Bug: 69119022
Bug: 69128408
Test: pwd/grp bionic unit tests
Change-Id: I3dae97a90597915fa30a88fe27cda88b107e9c35
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions