commit | 1b35dd6ec11bfb96fd946d6d2ec18e6938bfa090 | [log] [tgz] |
---|---|---|
author | Ivan Lozano <ivanlozano@google.com> | Wed Dec 06 16:55:10 2017 -0800 |
committer | Ivan Lozano <ivanlozano@google.com> | Wed Dec 06 16:55:10 2017 -0800 |
tree | a60f889afa1282d0e37525bb78577329671bf6fe | |
parent | eda72c27cab52c41016d8ce138438a2d59973231 [diff] |
Fix sanitizer in audioflinger Threads.cpp. In RecordThread::start(), an unsigned integer is negated before being set to mFramesToDrop (which is ssize_t). This causes a runtime error on integer sanitized builds. runtime error: negation of 1323000 cannot be represented in type 'unsigned int' This makes the conversion to ssize_t explicitly occur before the negation. Bug: 30969751 Test: Compiles. Change-Id: I9cf2e31728ff715c9755f257c1abf10fa5efbf82