commit | 5ff158fd499f581bdc1c3e91bbc03ce15eeeb77c | [log] [tgz] |
---|---|---|
author | Ivan Lozano <ivanlozano@google.com> | Mon Oct 30 09:06:24 2017 -0700 |
committer | Ivan Lozano <ivanlozano@google.com> | Mon Oct 30 09:06:24 2017 -0700 |
tree | 75a48894b0cdb09735bd00750aa5caf03136ad32 | |
parent | ad764cd0e198a0ede404c53e2da5fd38ecb1e049 [diff] |
Fix integer sanitizer in audiopolicyservice. A size_t was being converted to a ssize_t after an intended overflow had already occurred. This makes the conversion explicit. unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned int' Test: Compiled with the change and checked the sanitizer output. Bug: 30969751 Change-Id: Ic15cc4b5d8295e14e3588ffa240830f7570dcaf3