Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7ee80e75 authored by Ivan Lozano's avatar Ivan Lozano
Browse files

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
Merged-In: I9cf2e31728ff715c9755f257c1abf10fa5efbf82
parent 240201e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment