diff options
author | Ivan Lozano <ivanlozano@google.com> | 2017-12-06 14:19:44 -0800 |
---|---|---|
committer | Ivan Lozano <ivanlozano@google.com> | 2017-12-06 14:59:04 -0800 |
commit | 7025b54d8ac4b108c93b45958f7776c9098f6394 (patch) | |
tree | 51dc711c26148d780d118da62d5d8e5a8ff96ce6 /opengl/tests/gl_basic/gl_basic.cpp | |
parent | 5b4cffc352f7f5d3711d4b7798a07434a998b2d7 (diff) |
Fix sanitizer in egl_display_t::get.
On integer overflow sanitized builds, uintptr_t(dpy)-1U is causing a
runtime error:
runtime error: unsigned integer overflow: 0 - 1 cannot be represented in
type 'unsigned int'
This handles the case where dpy is 0 before the decrement occurs.
Bug: 30969751
Test: Compiles.
Change-Id: Ieafe818addfa09cf5b50e2df8f078296c5e3c759
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions