diff options
| author | Tom Cherry <tomcherry@google.com> | 2018-08-22 14:55:56 -0700 |
|---|---|---|
| committer | Tom Cherry <tomcherry@google.com> | 2018-08-22 15:07:53 -0700 |
| commit | ab434c70ce0d61baed87daf7584585a36475ab19 (patch) | |
| tree | fac29dc7bd0f37aa93d3b7a1c68bf909d0a5d18c /trusty/coverage/coverage.cpp | |
| parent | 8e3f0b1b2a0866ef1d5c1ae7f832617ca87f6d84 (diff) | |
init: accept -1 or 'unlimited' for an infinite rlimit
Due to a bug with ParseUint(), init would defacto accept -1 for an
infinite rlimit, but only on 64bit devices. That bug is now fixed,
such that -1 would be rejected by ParseUint() for all devices.
This change explicitly checks for -1 for all devices or 'unlimited' to
match ulimit's reporting and accepts either as an infinite rlimit.
Bug: 112668205
Test: new (and old) unit tests
Change-Id: Ie28ff622cdf375a65ceb5f32ffb14fb3d5d9f2ba
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions
