DescriptioniSAC entropy coder: Avoid signed integer overflow
By doing an unsigned instead of a signed addition, we get the exact
same machine code (in non-UBSan builds), but no longer trigger
undefined behavior since unsigned overflow is defined behavior.
BUG=webrtc:5485
Committed: https://crrev.com/806706875dac634a974f2ede1c4926a2e549fe47
Cr-Commit-Position: refs/heads/master@{#11776}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 13 (5 generated)
|