summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2017-12-06 14:19:44 -0800
committerIvan Lozano <ivanlozano@google.com>2017-12-06 14:59:04 -0800
commit7025b54d8ac4b108c93b45958f7776c9098f6394 (patch)
tree51dc711c26148d780d118da62d5d8e5a8ff96ce6 /opengl/tests/gl_basic/gl_basic.cpp
parent5b4cffc352f7f5d3711d4b7798a07434a998b2d7 (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