commit | e71027ef59e4e48140b6fc1b5fd7a7037d2dee67 | [log] [tgz] |
---|---|---|
author | Ivan Lozano <ivanlozano@google.com> | Mon Dec 04 16:09:10 2017 -0800 |
committer | Ivan Lozano <ivanlozano@google.com> | Mon Dec 04 16:09:10 2017 -0800 |
tree | 03a63300f9e883c0d57faa61e5c0c6b4a4c187c7 | |
parent | eda72c27cab52c41016d8ce138438a2d59973231 [diff] |
Fix integer sanitizer in FastMixerDumpState. Prevent FastMixerDumpState::dump(int) from throwing a runtime error on integer sanitized builds. runtime error: unsigned integer overflow: 3912 - 36680 cannot be represented in type 'unsigned int' The overflow looks intentional, so this refactors the code to use the builtin overflow function. Bug: 30969751 Test: Compiled and device boots. Change-Id: Ic84a1bd08839fe1af7f3b5318cd8d6ccee777443