commit | 90016ca95e9e13a2bac15767ebc2b6a9b947cb94 | [log] [tgz] |
---|---|---|
author | Ivan Lozano <ivanlozano@google.com> | Tue Dec 12 09:24:37 2017 -0800 |
committer | Ivan Lozano <ivanlozano@google.com> | Tue Dec 19 15:22:18 2017 -0800 |
tree | 442c358f67bbd1d54518e50617a52d2e92adbb21 | |
parent | 846639747108940f3612a1aad63797fe8671a8ec [diff] |
Fix createFromSharedObject in sanitized builds. On integer sanitized builds, a runtime error occurs on the last loop of the while loop. runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'size_t' (aka 'unsigned int') This restructures the while loop to prevent the overflow from occurring. Bug: 30969751 Test: Compiles, device boots. Ran RS tests. Change-Id: I11a3f9299e8fa376abfa63eca8baa6a186f787a1 Merged-In: I11a3f9299e8fa376abfa63eca8baa6a186f787a1