diff options
| author | 2020-01-22 10:46:25 +0100 | |
|---|---|---|
| committer | 2020-01-23 09:45:03 +0100 | |
| commit | da2f2fd0f4c4eeb498b4b0541719f4f34faf13e2 (patch) | |
| tree | 2a6240c5159623455a45c637d8eb4754d76fc9ab /libs/gui/BufferQueueThreadState.cpp | |
| parent | 46bb0aec07de33d13c545c39f5e2720450a50731 (diff) | |
Fix addition/overflow checks.
For unsigned arithmetic, use:
(a + b < a) to detect whether a+b wraps
(a > c / b) to detect whether a*b > c
Bug: 120078455
Test: builds and boots
Change-Id: Ic4f4d44f7c0656caa115f90f4cfa130192914949
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions