summaryrefslogtreecommitdiff
path: root/libs/input/KeyLayoutMap.cpp
diff options
context:
space:
mode:
author Jason Macnak <natsu@google.com> 2021-02-25 07:59:01 -0800
committer Jason Macnak <natsu@google.com> 2021-02-25 07:59:01 -0800
commite6c909761fd7bc967e298c5b9bed1ad638f995b4 (patch)
tree12b09b0efd13964288c6555892e290cf90c4ad76 /libs/input/KeyLayoutMap.cpp
parent01803f65fb75a3fe4012f45a0f3aedc0d51c36c7 (diff)
Load ANGLEResetDisplayPlatform via dlsym
... which is slightly more defensive than loading the function via eglGetProcAddress. When loading the function via eglGetProcAdress, the returned function pointer will be one of the ext forwardering helpers (__glExtFwd0 in this observed case). The process can then crash if eglTerminate() is called on a new thread that has not yet called eglMakeCurrent() where the thread local gl_hooks_t is 0x0. Bug: b/181162754 Test: HeifWriterTest on Cuttlefish w/ SwANGLE Change-Id: Ia8e55c899f9fde91215ce75313b33517f8440fee
Diffstat (limited to 'libs/input/KeyLayoutMap.cpp')
0 files changed, 0 insertions, 0 deletions