commit | 5ec161bb6845402ceed033c0f9d91127127b27e6 | [log] [tgz] |
---|---|---|
author | Ivan Lozano <ivanlozano@google.com> | Wed Dec 06 10:00:28 2017 -0800 |
committer | Ivan Lozano <ivanlozano@google.com> | Wed Dec 06 13:21:54 2017 -0800 |
tree | d57e2f88d50e4eb8dbf4ab7b7dac66f94eda7ebd | |
parent | eda72c27cab52c41016d8ce138438a2d59973231 [diff] |
Fix audioflinger in overflow sanitized builds. The loop as constructed in Track::triggerEvents potentially leads to two unsigned integer overflows on the i = 0 loop. This refactors the loop to prevent the overflow. Bug: 30969751 Test: Compiles and device boots. Change-Id: I7ac3223ab3197f5c475a4d09c99e6f05d0ddb208