commit | cafeee083af8306491756b473132c26c35676ff6 | [log] [tgz] |
---|---|---|
author | Ivan Lozano <ivanlozano@google.com> | Wed Dec 06 13:09:08 2017 -0800 |
committer | Ivan Lozano <ivanlozano@google.com> | Tue Dec 19 15:47:32 2017 -0800 |
tree | 19ba3ca7b55355e981e6a522b30ac17b900d902c | |
parent | 7f95a5e31ff5cee2008c63308d232bef5dbb0ea1 [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 Merged-In: I468d064eda5213fd773a094412cd669fc23617dc