diff options
author | Ivan Lozano <ivanlozano@google.com> | 2017-12-14 13:27:10 -0800 |
---|---|---|
committer | Ivan Lozano <ivanlozano@google.com> | 2017-12-19 15:12:09 -0800 |
commit | 054888fddbf8a5f62ebd65c10c849ff00b46c63c (patch) | |
tree | 08a2c41709d92dd4644e95d526819d30da68856b /opengl/tests/gl_basic/gl_basic.cpp | |
parent | a9c7e6d15201dbb701dc1f535689910a581912b0 (diff) |
Fix sanitizer in setViewportAndProjection.
On integer sanitized builds calculating b (and possibly t) throws a
runtime error due to an unsigned integer overflow occuring.
runtime error: unsigned integer overflow: 1024 - 1920 cannot be
represented in type 'unsigned long'
This changes the type of b (and others) to int32_t, which matches the
types in Rect and can store the negative results above without
overflowing.
Bug: 30969751
Test: Compiles, surfaceflinger tests pass.
Change-Id: Ifb45e3c7e14a2f782412e65d56e462e7df37faba
Merged-In: Ifb45e3c7e14a2f782412e65d56e462e7df37faba
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions