diff options
author | Ivan Lozano <ivanlozano@google.com> | 2017-12-12 09:24:37 -0800 |
---|---|---|
committer | Ivan Lozano <ivanlozano@google.com> | 2017-12-19 15:22:18 -0800 |
commit | 90016ca95e9e13a2bac15767ebc2b6a9b947cb94 (patch) | |
tree | 442c358f67bbd1d54518e50617a52d2e92adbb21 /rsElement.cpp | |
parent | 846639747108940f3612a1aad63797fe8671a8ec (diff) | |
download | rs-90016ca95e9e13a2bac15767ebc2b6a9b947cb94.tar.gz |
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
Diffstat (limited to 'rsElement.cpp')
0 files changed, 0 insertions, 0 deletions