commit | 7acfd3175237197b0440e9a337d1db9ebdf20c55 | [log] [tgz] |
---|---|---|
author | Ivan Lozano <ivanlozano@google.com> | Tue Nov 07 12:23:26 2017 -0800 |
committer | Ivan Lozano <ivanlozano@google.com> | Wed Nov 08 08:19:59 2017 -0800 |
tree | 1821608ad29b3108e029b2c682deb0ab833322be | |
parent | 1b70ec25ce919767610c2e1c6df0d28bf00b4a23 [diff] |
Fix sanitizer in ISensorService list functions. The integer overflow sanitizer is throwing unsigned integer overflow errors in the list functions in ISensorService. This refactors the loops to prevent the overflow on the last iteration. Test: Compiles and device boots without sanitizer errors. Bug: 30969751 Change-Id: I6a7993024fdc71702e8e4e8ae535cfaf999e9dab