commit | 7025b54d8ac4b108c93b45958f7776c9098f6394 | [log] [tgz] |
---|---|---|
author | Ivan Lozano <ivanlozano@google.com> | Wed Dec 06 14:19:44 2017 -0800 |
committer | Ivan Lozano <ivanlozano@google.com> | Wed Dec 06 14:59:04 2017 -0800 |
tree | 51dc711c26148d780d118da62d5d8e5a8ff96ce6 | |
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