diff options
author | Kyle Brenneman <[email protected]> | 2018-06-06 09:08:47 -0600 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-06-11 12:17:07 +0100 |
commit | 41642bdbca007035772fbfdc311f14daa5510d5d (patch) | |
tree | 287042074c5b35edb0fefbd49853e9151e61bdfa /src/mapi/glapi/glapi_nop.c | |
parent | e266b320590ebbeadf7c98b0b493d89886534ccb (diff) |
egl/glvnd: Fix a segfault in eglGetProcAddress.
If FindProcIndex in egldispatchstubs.c is called with a name that's less than
the first entry in the array, it would end up trying to store an index of -1 in
an unsigned integer, wrap around to 2^32, and then crash when it tries to look
that up.
Change FindProcIndex so that it uses bsearch(3) instead of implementing its own
binary search, like the GLX equivalent FindGLXFunction does.
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/mapi/glapi/glapi_nop.c')
0 files changed, 0 insertions, 0 deletions