Re: [Mesa-dev] [PATCH] egl/glvnd: Fix a segfault in eglGetProcAddress.

2018-06-07 Thread Eric Engestrom
On Wednesday, 2018-06-06 09:08:47 -0600, Kyle Brenneman wrote: > 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

[Mesa-dev] [PATCH] egl/glvnd: Fix a segfault in eglGetProcAddress.

2018-06-06 Thread Kyle Brenneman
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)