Handle next segment wraparound gracefully
Since global overflow/wraparound sanitization is enabled, mNextSegSmp can wraparound 32 bits and abort. In this case, we clamp to UINT_MAX to handle this condition gracefully. We already use this value as a signal to not transition to a new segment of tone generation. Test: Compiles Bug: 229549191 Change-Id: I2e937e3ea2c43f0f021c48d8ad5cebf2416c5a74
Loading
Please register or sign in to comment