16 lines
688 B
Diff
16 lines
688 B
Diff
src/glx/glx_pbuffer.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Index: mesa-23.3.4/src/glx/glx_pbuffer.c
|
|
===================================================================
|
|
--- mesa-23.3.4.orig/src/glx/glx_pbuffer.c
|
|
+++ mesa-23.3.4/src/glx/glx_pbuffer.c
|
|
@@ -329,7 +329,7 @@ __glXGetDrawableAttribute(Display * dpy,
|
|
/* Search the set of returned attributes for the attribute requested by
|
|
* the caller.
|
|
*/
|
|
- for (i = 0; i < num_attributes; i++) {
|
|
+ for (i = 0; i < num_attributes && i * 2 + 1 < length; i++) {
|
|
if (data[i * 2] == attribute) {
|
|
found = 1;
|
|
*value = data[(i * 2) + 1];
|