commit | 375257870bae0f9fc66f99b69a2b1e519c170c1c | [log] [tgz] |
---|---|---|
author | Vladimir Marko <vmarko@google.com> | Tue Mar 16 16:09:30 2021 +0000 |
committer | Vladimir Marko <vmarko@google.com> | Wed Mar 17 12:12:27 2021 +0000 |
tree | 588b82bed0c83fdd65bef0fb86fd729a7f2c3977 | |
parent | d1c8aaedf0eb3982f7e969ab66a2c391dbfd6929 [diff] |
Clean up OatHeader::GetStoreValueKey*(). Replace helper function ParseString() with calls to memchr() and make the OatHeader::GetStoreValueKey*() more readable. This also avoids using a pointer to `end + 1` when we fail to find the end of the value (this was benign as that `+1` should not cause arithmetic overflow anyway). Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: I2fa9043f42048689a64fba3ab1fc3845f4684544