commit | caa578a881d8862eb81961fe3c3c9614817f58fb | [log] [tgz] |
---|---|---|
author | Ivan Lozano <ivanlozano@google.com> | Mon Oct 30 09:06:24 2017 -0700 |
committer | Ivan Lozano <ivanlozano@google.com> | Tue Dec 19 10:48:24 2017 -0800 |
tree | 36558ba75bb1740aa2e26afc466457b19aeb735b | |
parent | 240201e27b1722009907a31983825668f2416ec2 [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 Merged-In: Ic15cc4b5d8295e14e3588ffa240830f7570dcaf3