commit | eea5bc394d36931c89ef38cd4683b085582e4359 | [log] [tgz] |
---|---|---|
author | Ivan Lozano <ivanlozano@google.com> | Wed Dec 06 13:09:08 2017 -0800 |
committer | Ivan Lozano <ivanlozano@google.com> | Thu Dec 07 14:43:47 2017 -0800 |
tree | b4ed2d0bb67f479ba4e9a883a11e1d537c3e7492 | |
parent | b8c6828db40f28b1f130b69dd2a3ddf414acd540 [diff] |
Fix integer sanitizer in audio_route_update_path. Calculating i could sometimes cause an unsigned integer overflow, which led to runtime errors on integer sanitized builds. runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned int' This refactors the loop to avoid the overflow. Bug: 30969751 Test: Compiles and device boots. Change-Id: I468d064eda5213fd773a094412cd669fc23617dc