commit | 46817ceaf3f25d2e317061e29dfdcd0048e2249c | [log] [tgz] |
---|---|---|
author | Evgenii Stepanov <eugenis@google.com> | Fri Sep 17 14:06:06 2021 -0700 |
committer | Evgenii Stepanov <eugenis@google.com> | Fri Sep 17 14:11:37 2021 -0700 |
tree | 507225054ea1c0685b0a3ade5a0afe343a9689e2 | |
parent | 62434518b2cfb8d5547d78e0fbd0b468f2c26db6 [diff] |
Fix stack-buffer-underflow in RunInIsolationMode. Readlink returns ssize_t, not size_t. (size_t)(-1) compares >0. This triggers 100% of the time under HWASan on an unrooted device. Process parent is adbd, and readlink fails with EACCESS. Bug: 193568145 Test: CtsBionicTestCases on any hwasan build Change-Id: I74f470e443069f93df99a6ef34f10c04282c0dd9