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-19 15:59:23 -0800
commit13f2c07e9c9989e8f29490b1ab46272fc6b4d56b (patch)
tree2f57c073ba4ba7f93705e5c12ec49eec40f1c7f2 /opengl/tests/gl_basic/gl_basic.cpp
parenta9c7e6d15201dbb701dc1f535689910a581912b0 (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 Merged-In: Ieafe818addfa09cf5b50e2df8f078296c5e3c759
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions